Retrieves the elements of indices indices
in the tensor reference
.
View aliases
Compat aliases for migration
See Migration guide for more details.
tf.compat.v1.keras.backend.gather
, `tf.compat.v2.keras.backend.gather`
tf.keras.backend.gather(
reference, indices
)
Arguments | |
---|---|
reference
|
A tensor. |
indices
|
An integer tensor of indices. |
Returns | |
---|---|
A tensor of same type as reference .
|