This issue is to implement dpctl.tensor C-API function
cdef api object UsmNDArray_MakeFromMemory(int nd, Py_ssize_t *shape, int typenum, _Memory mobj, Py_ssize_t offset)
to create a usm_ndarray from given memory object and offset.
Also to implement
cdef api void UsmNDArray_SetWritableFlag(usm_ndarray arr, int flag)
See IntelPython/numba-dpex#890 (comment) for context.
This issue is to implement
dpctl.tensorC-API functionto create a
usm_ndarrayfrom given memory object and offset.Also to implement
See IntelPython/numba-dpex#890 (comment) for context.