jermainewang commented on issue #13658: Converting MX array to DLPack crashes 
when MX array goes out-of-scope
URL: 
https://github.com/apache/incubator-mxnet/issues/13658#issuecomment-447891454
 
 
   @wkcn This explains the torch case thank you. In DGL, we actually handled 
this:
   
https://github.com/dmlc/dgl/blob/632d598c77af616278bc0f2144a14958678dcbae/src/runtime/ndarray.cc#L83-L89
   In DGL, we also only support contiguous tensor, so `stride_` is never used 
elsewhere. The NDArray class is borrowed from TVM project. I wonder whether 
this bug happens in TVM too.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to