Skip to content

Commit

Permalink
make no-grad-sync yield None
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharth9820 committed Jul 1, 2024
1 parent 57a895d commit de88509
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions axonn/intra_layer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def no_grad_sync():
old_val = NO_GRADIENT_SYNC
try:
NO_GRADIENT_SYNC = True
yield None
finally:
NO_GRADIENT_SYNC = old_val

Expand Down

0 comments on commit de88509

Please sign in to comment.