Skip to content

Commit b0f471a

Browse files
Update TestTensordot by adding factor to scale tolerance in assert_dtype_allclose
1 parent 41ec5a4 commit b0f471a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpnp/tests/test_product.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ def test_axes(self, dtype, axes):
799799

800800
result = dpnp.tensordot(ia, ib, axes=axes)
801801
expected = numpy.tensordot(a, b, axes=axes)
802-
assert_dtype_allclose(result, expected)
802+
assert_dtype_allclose(result, expected, factor=9)
803803

804804
@pytest.mark.parametrize("dtype1", get_all_dtypes())
805805
@pytest.mark.parametrize("dtype2", get_all_dtypes())
@@ -844,7 +844,7 @@ def test_linalg(self, axes):
844844

845845
result = dpnp.linalg.tensordot(ia, ib, axes=axes)
846846
expected = numpy.linalg.tensordot(a, b, axes=axes)
847-
assert_dtype_allclose(result, expected)
847+
assert_dtype_allclose(result, expected, factor=9)
848848

849849
def test_error(self):
850850
a = 5

0 commit comments

Comments
 (0)