Skip to content
Discussion options

You must be logged in to vote
  1. Yes, you can sort based on a pre-defined permutation, e.g.:
dataset = dataset[torch.tensor([0, 2, 4, 6])]
  1. Shuffling/Splitting does not modify the underlying data (the same as a tensor slice will not copy the tensor). This allows us to not modify/copy the underlying data. If you strictly want to enforce this, try dataset = dataset[:1000].copy().

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@anthonysirico
Comment options

@anthonysirico
Comment options

@rusty1s
Comment options

@anthonysirico
Comment options

@rusty1s
Comment options

Answer selected by anthonysirico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants