sequence.sequence_erase
tensor.sequence_erase
Outputs the tensor sequence with the erased tensor at the specified position.
Args
tensors
(Array<Tensor<T>>
) - The tensor sequence.position
(Option<Tensor<i32>>
) - The optional position tensor (by default erases the last tensor).
Panics
Panics if position is not a scalar
Panics if position is out of bounds [-n, n - 1]
Returns
The tensor sequence Array<Tensor<T>>
with the erased tensor at the specified position.
Examples
Last updated