torch.index_select — PyTorch 1.10.1 documentation
pytorch.org › docs › stabletorch.index_select(input, dim, index, *, out=None) → Tensor. Returns a new tensor which indexes the input tensor along dimension dim using the entries in index which is a LongTensor. The returned tensor has the same number of dimensions as the original tensor ( input ). The dim th dimension has the same size as the length of index; other ...
Remove indices from Dataset - PyTorch Forums
discuss.pytorch.org › t › remove-indices-fromNov 19, 2021 · Remove indices from Dataset. abbab (Abba) November 19, 2021, 1:18pm #1. I have a 2 datasets supervised_data and validation_data which I used in a previous training. I want to exclude Indices of the validation_data from the supervised_data. I tried torch.utils.data.Subset (supervised_data, validation_data.indices) but this selects only the ...
torch.Tensor.indices — PyTorch 1.10.1 documentation
pytorch.org › generated › 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