Skip to content

Commit

Permalink
update: test case
Browse files Browse the repository at this point in the history
  • Loading branch information
kozistr committed Jan 21, 2025
1 parent d72b81b commit 47b07c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ def test_cpu_offload_optimizer():

def test_orthograd_name():
optimizer = build_orthograd(Example().parameters())
optimizer.zero_grad()

_ = optimizer.param_groups
_ = optimizer.__getstate__()
_ = optimizer.state

assert str(optimizer).lower() == 'orthograd'

0 comments on commit 47b07c5

Please sign in to comment.