add broadcast synchronize

pull/451/head
yingtongxiong 2023-10-26 17:37:08 +08:00
parent 7b1b892084
commit e4e68ff0ff
1 changed files with 2 additions and 0 deletions

View File

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