torch.Tensor.index_fill_ — PyTorch 1.10.1 documentation
pytorch.org › torchtorch.Tensor.index_fill_ — PyTorch 1.10.1 documentation torch.Tensor.index_fill_ Tensor.index_fill_(dim, index, value) → Tensor Fills the elements of the self tensor with value value by selecting the indices in the order given in index. Parameters dim ( int) – dimension along which to index index ( LongTensor) – indices of self tensor to fill in
torch.Tensor.index_fill — PyTorch 1.10.1 documentation
pytorch.org › torchLearn about PyTorch’s features and capabilities. Community. Join the PyTorch developer community to contribute, learn, and get your questions answered. Developer Resources. Find resources and get questions answered. Forums. A place to discuss PyTorch code, issues, install, research. Models (Beta) Discover, publish, and reuse pre-trained models
Index — PyTorch 1.10.1 documentation
https://pytorch.org/docs/stable/genindex.htmlLearn about PyTorch’s features and capabilities. Community. Join the PyTorch developer community to contribute, learn, and get your questions answered. Developer Resources. Find resources and get questions answered. Forums. A place to discuss PyTorch code, issues, install, research. Models (Beta) Discover, publish, and reuse pre-trained models