tkonolige commented on code in PR #11504:
URL: https://github.com/apache/tvm/pull/11504#discussion_r886128821


##########
src/runtime/ndarray.cc:
##########
@@ -240,6 +240,10 @@ NDArray NDArray::FromDLPack(DLManagedTensor* tensor) {
   data->SetDeleter(Internal::DLPackDeleter);
   // fill up content.
   data->manager_ctx = tensor;
+  ICHECK(::tvm::runtime::IsContiguous(tensor->dl_tensor))
+      << "DLManagedTensor is not contiguous. It does not support for now";

Review Comment:
   The wording on those lines is a little awkward but I believe they mean that 
ArrayCopyFromBytes and ArrayCopyToBytes only support contiguous data.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to