(Tensor) the input tensor.
(LongTensor) the indices into tensor
Returns a new tensor with the elements of
input at the given indices.
The input tensor is treated as if it were viewed as a 1-D tensor. The result
takes the same shape as the indices.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.