tf.keras.backend.gather

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

Defined in tensorflow/python/keras/_impl/keras/backend.py.

Retrieves the elements of indices indices in the tensor reference.

Arguments:

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

Returns:

A tensor of same type as reference.