indices = torch.randperm(len(pictures))[:10] pictures[indices]. Read more about torch.randint and torch.randperm . Second code snippet is inspired by this ...
確定! 回上一頁