add synchronize

pull/456/head
yingtongxiong 2023-10-26 20:04:01 +08:00
parent 1aae39b667
commit cbd4f04244
1 changed files with 1 additions and 1 deletions

View File

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