fix broadcast synchronize()

pull/450/head
yingtongxiong 2023-10-26 17:29:08 +08:00
parent 1d7e2d04ec
commit cd53d90db9
1 changed files with 2 additions and 0 deletions

View File

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