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

Fix single-GPU fallback for examples/distributed

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