Skip to content

Commit

Permalink
Fix forward test tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
WardBrian committed Feb 5, 2024
1 parent bd4d515 commit b71473f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_t3_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

import pytorch_finufft

torch.manual_seed(45678)


def check_t3_forward(N: int, dim: int, device: str) -> None:
"""
Expand All @@ -28,7 +30,7 @@ def check_t3_forward(N: int, dim: int, device: str) -> None:
print("shape of targets is " + str(targets.shape))

finufft_out = pytorch_finufft.functional.finufft_type3(
points, values.flatten(), targets
points, values.flatten(), targets, eps=1e-7
)

against_torch = torch.fft.fftn(values)
Expand Down

0 comments on commit b71473f

Please sign in to comment.