KJlaccHoeUM9l opened a new pull request, #11391:
URL: https://github.com/apache/tvm/pull/11391

   [PR](https://github.com/apache/tvm/pull/11003) has added the ability to skip 
copying data when creating input `NDArray` tensors if the source input is in 
`DLTensor` format.
   
   However, when adding this functionality, memory alignment was not checked, 
as it was done for 
[GraphExecutor](https://github.com/apache/tvm/blob/c216cbec5bb795a8b13bdb1e177b523e4f7e4ca8/src/runtime/graph_executor/graph_executor.cc#L168).
   In view of this, runtime errors (`Segmentation fault (core dumped)`) are 
possible, because TVM uses [aligned 
memory](https://github.com/apache/tvm/blob/c216cbec5bb795a8b13bdb1e177b523e4f7e4ca8/src/runtime/c_runtime_api.cc#L166).
   
   This PR adds this check.


-- 
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: commits-unsubscr...@tvm.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to