import dpctl.tensor as dpt
x = dpt.arange(10)
ind = dpt.asarray([0])
vals = dpt.asarray([10], dtype='f4')
dpt.put(a,ind,vals)
hev, _ = ti._put(x, (indices,), vals, axis, mode, sycl_queue=exec_q)
214 hev.wait()
TypeError: Array data types are not the same.
# numpy
import numpy
x_np = dpt.asnumpy(x)
numpy.put(x_np, dpt.asnumpy(ind), dpt.asnumpy(vals))
x_np
# array([10, 1, 2, 3, 4, 5, 6, 7, 8, 9])