Commit 595694cb authored by Himanshu Pandey's avatar Himanshu Pandey Committed by Francisco Massa

Replaced hard coding for shuffle variable (#438)

parent f2513645
......@@ -37,7 +37,7 @@ class DistributedSampler(Sampler):
self.epoch = 0
self.num_samples = int(math.ceil(len(self.dataset) * 1.0 / self.num_replicas))
self.total_size = self.num_samples * self.num_replicas
self.shuffle = True
self.shuffle = shuffle
def __iter__(self):
if self.shuffle:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment