add broadcast synchronize (#451)

pull/452/head^2
ytxiong 2023-10-26 17:38:51 +08:00 committed by GitHub
parent 7b1b892084
commit f653e5af01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 #
##################