Skip to content

Commit

Permalink
conftest.py: running tests with numpy 2.0 (#100)
Browse files Browse the repository at this point in the history
np.product was removed in numpy 2.0, and only np.prod remains.
This commit allows tests to pass under numpy 2.0
  • Loading branch information
gabuzi authored Nov 22, 2024
1 parent 7039bc1 commit 7e23776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_params():


def create_input_plus_noise(shape, is_complex):
x = np.arange(np.product(shape)).reshape(shape)
x = np.arange(np.prod(shape)).reshape(shape)
x = torch.tensor(x, dtype=torch.get_default_dtype())

if is_complex:
Expand Down

0 comments on commit 7e23776

Please sign in to comment.