Missed TensorFlow World? Check out the recap. Learn more

tf.keras.backend.gather

TensorFlow 2 version View source on GitHub

Retrieves the elements of indices indices in the tensor reference.

Aliases:

tf.keras.backend.gather(
    reference,
    indices
)

Arguments:

  • reference: A tensor.
  • indices: An integer tensor of indices.

Returns:

A tensor of same type as reference.