Skip to content

Commit 42b199d

Browse files
Address the remarks
1 parent 3c446c0 commit 42b199d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/helper.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ def assert_dtype_allclose(dpnp_arr, numpy_arr, check_type=True):
4040
dpnp_arr_dev = dpnp_arr.sycl_device
4141
is_np_arr_f2 = numpy_arr_dtype == numpy.float16
4242

43-
if is_np_arr_f2 and has_support_aspect16(dpnp_arr_dev):
44-
assert dpnp_arr_dtype == numpy_arr_dtype
45-
elif not is_np_arr_f2 and (
46-
has_support_aspect64(dpnp_arr_dev)
47-
or numpy_arr_dtype not in list_64bit_types
43+
if is_np_arr_f2:
44+
if has_support_aspect16(dpnp_arr_dev):
45+
assert dpnp_arr_dtype == numpy_arr_dtype
46+
elif (
47+
numpy_arr_dtype not in list_64bit_types
48+
or has_support_aspect64(dpnp_arr_dev)
4849
):
4950
assert dpnp_arr_dtype == numpy_arr_dtype
5051
else:

0 commit comments

Comments
 (0)