torch.utils.data.random_split() returns dataset index as tensor #10165
Labels
module: dataloader
Related to torch.utils.data.DataLoader and Sampler
module: docs
Related to our documentation, both in docs/ and docblocks
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Issue description
torch.utils.data.random_split()
returns the index of the datapoint (idx) as a tensor rather than a float which messes up the__getitem__()
routine of the datasetCode example
The text was updated successfully, but these errors were encountered: