8000 TST: Re-enable int8/uint8 einsum tests by JuliaPoo · Pull Request #26602 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

TST: Re-enable int8/uint8 einsum tests #26602

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 2 commits into from
Jun 5, 2024
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
20 changes: 0 additions & 20 deletions numpy/_core/tests/test_einsum.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@
assert_raises, suppress_warnings, assert_raises_regex, assert_allclose
)

try:
COMPILERS = np.show_config(mode="dicts")["Compilers"]
USING_CLANG_CL = COMPILERS["c"]["name"] == "clang-cl"
except TypeError:
USING_CLANG_CL = False

# Setup for optimize einsum
chars = 'abcdefghij'
sizes = np.array([2, 3, 4, 5, 4, 3, 2, 6, 5, 4, 3])
Expand Down Expand Up @@ -621,23 +615,9 @@ def check_einsum_sums(self, dtype, do_opt=False):
[2.]) # contig_stride0_outstride0_two

def test_einsum_sums_int8(self):
if (
(sys.platform == 'darwin' and platform.machine() == 'x86_64')
or
USING_CLANG_CL
):
pytest.xfail('Fails on macOS x86-64 and when using clang-cl '
'with Meson, see gh-23838')
self.check_einsum_sums('i1')

def test_einsum_sums_uint8(self):
if (
(sys.platform == 'darwin' and platform.machine() == 'x86_64')
or
USING_CLANG_CL
):
pytest.xfail('Fails on macOS x86-64 and when using clang-cl '
'with Meson, see gh-23838')
self.check_einsum_sums('u1')

def test_einsum_sums_int16(self):
Expand Down
Loading
0