You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following array cannot be exported by DLPack currently, but would be valid. This is very obscure though:
# Not contiguous array (and not size 1) which has strides that along a dimension of size 1, so that they do not matter:
arr = np.ndarray(dtype="f8", strides=(4, 8), shape=(1, 10), buffer=np.ones(1000, dtype="uint8"))
arr.__dlpack__() # could be exported, but fails.
I expected it to be easier to achieve, but arr.view only works with C-contiguous arrays.
EDIT: Honestly, if someone ever is tempted to just close this, fine with me (although fixing is probably also easy).
The text was updated successfully, but these errors were encountered:
The following array cannot be exported by DLPack currently, but would be valid. This is very obscure though:
I expected it to be easier to achieve, but
arr.view
only works with C-contiguous arrays.EDIT: Honestly, if someone ever is tempted to just close this, fine with me (although fixing is probably also easy).
The text was updated successfully, but these errors were encountered: