sequence.sequence_at
tensor.sequence_at
Outputs the tensor at the specified position in the input sequence.
Args
tensors
(Array<Tensor<T>>
) - The tensor sequence.position
(Tensor<i32>
) - The position tensor.
Panics
Panics if position is not a scalar
Panics if position is out of bounds [-n, n - 1]
Returns
The tensor Tensor<T>
from the sequence at the specified position.
Examples
Last updated