tf.keras.backend.any

Bitwise reduction (logical OR).

Aliases:

  • tf.compat.v1.keras.backend.any
  • tf.compat.v2.keras.backend.any
  • tf.keras.backend.any
tf.keras.backend.any(
    x,
    axis=None,
    keepdims=False
)

Defined in python/keras/backend.py.

Arguments:

  • x: Tensor or variable.
  • axis: axis along which to perform the reduction.
  • keepdims: whether the drop or broadcast the reduction axes.

Returns:

A uint8 tensor (0s and 1s).