Missed TensorFlow World? Check out the recap. Learn more

tf.keras.backend.equal

TensorFlow 2 version View source on GitHub

Element-wise equality between two tensors.

Aliases:

tf.keras.backend.equal(
    x,
    y
)

Arguments:

  • x: Tensor or variable.
  • y: Tensor or variable.

Returns:

A bool tensor.