Dataloader iterable - PyTorch Forums
https://discuss.pytorch.org/t/dataloader-iterable/943702.11.2017 · Dear PyTorch community, I am working on an optimization algorithm. This algorithm needs to take a random data in the dataloader at each iteration, so I do not have many epoch, but I have a max iteration variable (30000 for example). However, to implement it by the easiest way, I would have access to the dataset like I have access to a list: for i_data in range(max_iter): data …
Dataloader iterable - PyTorch Forums
discuss.pytorch.org › t › dataloader-iterableNov 02, 2017 · Dear PyTorch community, I am working on an optimization algorithm. This algorithm needs to take a random data in the dataloader at each iteration, so I do not have many epoch, but I have a max iteration variable (30000 for example). However, to implement it by the easiest way, I would have access to the dataset like I have access to a list: for i_data in range(max_iter): data = trainloader[i ...