fix(optimizer):broadcast (#453)

* fix broadcast synchronize()

* fix synchronize
pull/454/head
ytxiong 2023-10-26 17:54:54 +08:00 committed by GitHub
parent aeee9fd2a9
commit ad70e323eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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