File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -316,8 +316,8 @@ cpdef to_dlpack_capsule(usm_ndarray usm_ary):
316316 stdlib.free(shape_strides_ptr)
317317 stdlib.free(dlm_tensor)
318318 raise BufferError(
319- " to_dlpack_capsule: Could not reconstruct strides "
320- " for non-contiguous tensor "
319+ " to_dlpack_capsule: Invalid array encountered "
320+ " when building strides "
321321 )
322322
323323 strides_ptr = < Py_ssize_t * > & shape_strides_ptr[nd]
@@ -444,8 +444,8 @@ cpdef to_dlpack_versioned_capsule(usm_ndarray usm_ary, bint copied):
444444 stdlib.free(shape_strides_ptr)
445445 stdlib.free(dlmv_tensor)
446446 raise BufferError(
447- " to_dlpack_versioned_capsule: Could not reconstruct "
448- " strides for non-contiguous tensor "
447+ " to_dlpack_versioned_capsule: Invalid array encountered "
448+ " when building strides "
449449 )
450450
451451 strides_ptr = < Py_ssize_t * > & shape_strides_ptr[nd]
You can’t perform that action at this time.
0 commit comments