axtreme.data.fixed_random_sample¶
A copy of pytorch’s RandomSampler that uses the same random sample for each iteration.
This is basically an identical copy, except the Generator has been swapped for a seed, which creates the same generator each time the samples are iterated through (e.g the DataLoader is run to completion).
Classes
|
Samples elements randomly. |