Skip to content

Commit

Permalink
fix: set backward ad to True
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyolicoris committed Apr 2, 2024
1 parent 894a5b0 commit e34d2dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_grad.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ def test_low_order_cpu(
at.requires_grad = at_requires_grad
rt.requires_grad = rt_requires_grad

assert gradcheck(compressor_core, (x, zi, at, rt), check_forward_ad=True, check_backward_ad=False)
assert gradcheck(compressor_core, (x, zi, at, rt), check_forward_ad=True)
assert gradgradcheck(compressor_core, (x, zi, at, rt))

0 comments on commit e34d2dc

Please sign in to comment.