Skip to content

Commit

Permalink
Try to identify device
Browse files Browse the repository at this point in the history
  • Loading branch information
ceriottm committed Aug 31, 2024
1 parent 39f45bf commit 6da2942
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sphericart-torch/python/tests/test_autograd.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ def test_second_derivative_error(xyz):
# case 1: autograd.grad raises an error
# being the first time the second derivatives are requested, and since
# `backward_second_derivatives=False`, a warning is also displayed
print("WAT ")
print(
"WAT ", sph.device, torch.device("mps").type, torch.backends.mps.is_available()
)
try:
torch.autograd.grad(
outputs=l1,
Expand Down

0 comments on commit 6da2942

Please sign in to comment.