Unverified Commit 4a8cf7ad authored by mcarilli's avatar mcarilli Committed by GitHub
Browse files

Fix single-GPU fallback for examples/distributed

parent 31931985
......@@ -201,7 +201,8 @@ def test():
for epoch in range(1, args.epochs + 1):
#=====START: ADDED FOR DISTRIBUTED======
train_sampler.set_epoch(epoch)
if args.distributed:
train_sampler.set_epoch(epoch)
#=====END: ADDED FOR DISTRIBUTED======
train(epoch)
......
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