You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
x(asarray) is created as float32 on gpu device without double type support and its printable representation shows with dtype which causes this test to fall.
The example code from WSL:
def test_print_repr(self):
...
x = dpt.asarray([np.nan, np.inf], sycl_queue=q)
> assert repr(x) == "usm_ndarray([nan, inf])"
E AssertionError: assert 'usm_ndarray(...type=float32)' == 'usm_ndarray([nan, inf])'
E - usm_ndarray([nan, inf])
E + usm_ndarray([nan, inf], dtype=float32)
E ? +++++++++++++++
Suggested action:
Add if x.sycl_device.has_aspect_fp64 to check for double type support
The text was updated successfully, but these errors were encountered:
x(asarray) is created as float32 on gpu device without double type support and its printable representation shows with dtype which causes this test to fall.
The example code from WSL:
Suggested action:
The text was updated successfully, but these errors were encountered: