Skip to content

Commit b52dd41

Browse files
committed
Update trigonometric tests also
1 parent dc7c4a9 commit b52dd41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dpnp/tests/third_party/cupy/math_tests/test_trigonometric.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import unittest
22

3+
import numpy
34
import pytest
45

56
from dpnp.tests.helper import has_support_aspect64
@@ -24,7 +25,7 @@ def check_binary(self, name, xp, dtype):
2425
return getattr(xp, name)(a, b)
2526

2627
@testing.for_dtypes(["e", "f", "d"])
27-
@testing.numpy_cupy_allclose(atol=1e-5)
28+
@testing.numpy_cupy_allclose(atol={numpy.float16: 1e-3, "default": 1e-5})
2829
def check_unary_unit(self, name, xp, dtype):
2930
a = xp.array([0.2, 0.4, 0.6, 0.8], dtype=dtype)
3031
return getattr(xp, name)(a)

0 commit comments

Comments
 (0)