Skip to content

Commit

Permalink
Debug CI
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitSolomonPrinceton committed Sep 16, 2024
1 parent 4a17a65 commit ec612c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_torch_numerics.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,13 @@ def perform_test(atom, in_np, in_tch):
This is an internal function that performs a test and compares the result between
the np version and the torch version.
"""
print(f"in_np = {in_np}")
print(f"in_tch = {in_tch}")
res_np = atom.numeric(in_np)
res_tch = EXPR2TORCH.get(type(atom)).torch_numeric(atom, in_tch)
print(f"res_np = {res_np}")
print(f"res_tch = {res_tch}")
print("="*30)
if type(res_tch) is torch.Tensor:
res_tch = res_tch.detach().numpy()
assert np.allclose(res_np, res_tch, rtol=RTOL, atol=ATOL, equal_nan=True)
Expand Down

0 comments on commit ec612c7

Please sign in to comment.