View source on GitHub |
Take elements from a tensor along an axis.
tf.keras.ops.take(
x, indices, axis=None
)
Args | |
---|---|
x
|
Source tensor. |
indices
|
The indices of the values to extract. |
axis
|
The axis over which to select values. By default, the flattened input tensor is used. |
Returns | |
---|---|
The corresponding tensor of values. |