Commit 3ce1b68
committed
Tests added for problem from #728
```python
In [1]: import dpctl.tensor as dpt
In [2]: X = dpt.asarray([])
In [3]: dpt.astype(X, float)
Out[3]: <dpctl.tensor._usmarray.usm_ndarray at 0x7fdb48137740>
In [4]: (dpt.asnumpy(_), _.dtype, _.shape, _.strides)
Out[4]: (array([], dtype=float64), dtype('float64'), (0,), (1,))
```1 parent 624564e commit 3ce1b68
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
| 603 | + | |
| 604 | + | |
603 | 605 | | |
604 | 606 | | |
605 | 607 | | |
| |||
0 commit comments