Skip to content

Commit 65ed102

Browse files
committed
Use float32 in test ufuncs
1 parent bd46f72 commit 65ed102

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

numba_dpex/tests/kernel_tests/test_func.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
@dpex.func
1212
def g(a):
13-
return a + 1
13+
return a + dpnp.float32(1)
1414

1515

1616
@dpex.kernel

numba_dpex/tests/kernel_tests/test_func_specialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
def increment(a):
20-
return a + 1
20+
return a + dpnp.float32(1)
2121

2222

2323
def test_basic():

0 commit comments

Comments
 (0)