torch.Tensor — PyTorch 1.10.1 documentation
pytorch.org › docs › stableFills the elements of the self tensor with value value by selecting the indices in the order given in index. Tensor.index_fill. Out-of-place version of torch.Tensor.index_fill_(). Tensor.index_put_ Puts values from the tensor values into the tensor self using the indices specified in indices (which is a tuple of Tensors). Tensor.index_put