Others may confirm if this is correct, but I believe they implement this in the 
Java version by keeping track if the managed NDArray is the owner of the native 
handle, using that to determine if it can release it.

https://github.com/apache/incubator-tvm/blob/1dcf8a16ee3a93dff5ffc1ad1a66892eda03ef13/jvm/core/src/main/java/org/apache/tvm/NDArrayBase.java

Here, I believe it's the "isView" bool.  

Maybe something similar can automatically be set if the managed NDArray is 
runtime created vs user created?





---
[Visit 
Topic](https://discuss.tvm.ai/t/introducing-tvm-net-for-bringing-tvm-features-into-net-world/6213/11)
 to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.ai/email/unsubscribe/059bd28b25a47b6e27f58c60acfc7eef49751a9192301aa1e5a82624b8576045).

Reply via email to