Skip to content

[CI] Fix execnet.gateway_base.DumpError: can't serialize <class 'numpy.int64'> #2379

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tests/eager_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ def test_dft_cfft_last_axis(self):
np.testing.assert_allclose(expected1, expected2)
with self.subTest(
c_shape=c.shape,
le=list(le),
le=le.tolist(),
expected_shape=expected1.shape,
weights=we,
weights=we.tolist(),
):
case = onnx_script_test_case.FunctionTestParams(
signal_dft.dft_last_axis, [x, le, False], [expected1]
Expand All @@ -192,7 +192,7 @@ def test_dft_rfft(self, x_, s: int):
nax = np.array([ax], dtype=np.int64)
with self.subTest(
x_shape=x.shape,
le=list(le),
le=le.tolist(),
ax=ax,
expected_shape=expected.shape,
):
Expand Down Expand Up @@ -230,7 +230,7 @@ def test_dft_cfft(self, x, y):
np.testing.assert_allclose(expected1, expected2)
with self.subTest(
c_shape=c.shape,
le=list(le),
le=le.tolist(),
ax=ax,
expected_shape=expected1.shape,
):
Expand All @@ -256,7 +256,7 @@ def test_dft_rifft(self, x_):
nax = np.array([ax], dtype=np.int64)
with self.subTest(
x_shape=x.shape,
le=list(le),
le=le.tolist(),
ax=str(ax),
expected_shape=expected.shape,
):
Expand Down Expand Up @@ -295,7 +295,7 @@ def test_dft_cifft(self, x, y):
np.testing.assert_allclose(expected1, expected2)
with self.subTest(
c_shape=c.shape,
le=list(le),
le=le.tolist(),
ax=str(ax),
expected_shape=expected1.shape,
):
Expand Down
Loading