We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 395f3bc commit 1a61fe9Copy full SHA for 1a61fe9
dpctl/tensor/_ctors.py
@@ -196,16 +196,16 @@ def _asarray_from_usm_ndarray(
196
197
198
def _map_to_device_dtype(dt, q):
199
- if dt.char == "?" or np.issubdtype(dt, np.integer):
+ dtc = dt.char
200
+ if dtc == "?" or np.issubdtype(dt, np.integer):
201
return dt
202
d = q.sycl_device
- dtc = dt.char
203
if np.issubdtype(dt, np.floating):
204
if dtc == "f":
205
206
if dtc == "d" and d.has_aspect_fp64:
207
208
- if dtc == "h" and d.has_aspect_fp16:
+ if dtc == "e" and d.has_aspect_fp16:
209
210
return dpt.dtype("f4")
211
if np.issubdtype(dt, np.complexfloating):
0 commit comments