dpctl icon indicating copy to clipboard operation
dpctl copied to clipboard

Copying from device with float64 support to device without float64 support failed

Open npolina4 opened this issue 2 years ago • 0 comments

import dpctl.tensor as dpt

#Default type is float64.
Xcpu = dpt.ones(4, device="cpu")

#GPU without float64 support. Should have been cast to dtype float32, but failed.
dpt.asarray(Xcpu, device="gpu")

npolina4 avatar Jan 26 '23 17:01 npolina4