Hi,
I am using a custom loader where after each epoch the training images (stored in RAM) are randomly resampled into patches. For this I reset the samplers of my DataLoader, since this seemed the computationally fastest solution.
In Pytorch 0.4 however, the framework forbids the manual call of setattr with the named ValueError.
My current solution is to comment these lines away and everything works fine, but I wonder why this option is  restricted by default? - If there are no known associated problems, would a warning not be more appropriate than an actual error that breaks the pipeline?
Are there better alternatives to obtain a dynamic sampling of training patches from larger image files?