add synchronize

pull/452/head
yingtongxiong 2023-10-26 17:46:07 +08:00
parent e4e68ff0ff
commit c78844626b
1 changed files with 1 additions and 1 deletions

View File

@ -709,7 +709,7 @@ class HybridZeroOptimizer(BaseOptimizer):
for handle in handles:
handle.wait()
torch.cuda().synchronize()
torch.cuda.synchronize()
##################
# FP16 Utilities #