Skip to content

Commit

Permalink
update: test_no_gradients
Browse files Browse the repository at this point in the history
  • Loading branch information
kozistr committed Jan 21, 2025
1 parent 26c3288 commit 4a1b3b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_gradients.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_no_gradients(optimizer_name):
sphere_loss(p1 + p3).backward(create_graph=True)

optimizer.step(lambda: 0.1) # for AliG optimizer
if optimizer_name not in {'lookahead', 'trac'}:
if optimizer_name not in {'lookahead', 'trac', 'orthograd'}:
optimizer.zero_grad(set_to_none=True)


Expand Down

0 comments on commit 4a1b3b7

Please sign in to comment.