Commit cc02941
Return default floating point type of the device in dpctl.tensor.astype when newdtype=None (#1262)
* For None returns default floating point type supported by device.
* For all other types returns dpt.dtype(dtype)
---------
Co-authored-by: Oleksandr Pavlyk <oleksandr.pavlyk@intel.com>1 parent 36a7cd7 commit cc02941
2 files changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
364 | 365 | | |
365 | 366 | | |
366 | 367 | | |
367 | | - | |
| 368 | + | |
| 369 | + | |
368 | 370 | | |
369 | 371 | | |
370 | 372 | | |
| |||
392 | 394 | | |
393 | 395 | | |
394 | 396 | | |
395 | | - | |
| 397 | + | |
396 | 398 | | |
397 | 399 | | |
398 | 400 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1196 | 1196 | | |
1197 | 1197 | | |
1198 | 1198 | | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
1199 | 1204 | | |
1200 | 1205 | | |
1201 | 1206 | | |
| |||
0 commit comments