get

abstract operator fun Tensor<T>.get(i: Int): Tensor<T>

Returns the tensor at index i For more information: https://pytorch.org/cppdocs/notes/tensor_indexing.html

Return

subtensor of the original tensor with index i

Parameters

i

index of the extractable tensor

Sources

Link copied to clipboard