junrushao commented on issue #264: URL: https://github.com/apache/tvm-ffi/issues/264#issuecomment-3543871458
Back to the issue itself, using this API `tvm::ffi::Tensor::FromNDAlloc` is the fundamental reason the deleter is created causing the program to crash at exit time. A good alternative is to say it’s a dangerous API and we should always use `ffi::Tensor::FromEnvAlloc` as TQ pointed out earlier in this thread, and we could replace all uses of this dangerous API in our tutorials. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
