Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tf.keras.backend.all

TensorFlow 1 version View source on GitHub

Bitwise reduction (logical AND).

tf.keras.backend.all(
    x, axis=None, keepdims=False
)

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).