Skip to content

Commit

Permalink
Fix periodically failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
jloveric committed May 19, 2024
1 parent 2dfee79 commit 7c80be0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@

<!---
[![CI](https://github.com/jloveric/high-order-layers-torch/actions/workflows/python-app.yml/badge.svg)](https://github.com/jloveric/high-order-layers-torch/actions/workflows/python-app.yml)
--->


# Piecewise Polynomial in PyTorch

Expand Down
2 changes: 1 addition & 1 deletion tests/test_sparse_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ def test_sparse_lion():
assert torch.any((w_after - w_before) > 0)

out_final = layer(x)
diff = out_final - out
diff = torch.abs(out_final - out)
assert torch.any(diff > 0)
print("diff", diff)

0 comments on commit 7c80be0

Please sign in to comment.