vvchernov commented on code in PR #11504:
URL: https://github.com/apache/tvm/pull/11504#discussion_r886104303
##########
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:
Ok, done. It is not clear for me description from 65 and 83 lines (initial
code). Looks like idea is related to non-contiguous data copying, but I'm not
sure
--
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]