"git@developer.sourcefind.cn:OpenDAS/autoawq.git" did not exist on "6b7992aa9b0f87cba4d529bb93257864cf2d5b56"
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(): ...@@ -201,7 +201,8 @@ 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======
train_sampler.set_epoch(epoch) if args.distributed:
train_sampler.set_epoch(epoch)
#=====END: ADDED FOR DISTRIBUTED====== #=====END: ADDED FOR DISTRIBUTED======
train(epoch) 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