Deallocate the memory which is not in demand #16239
KotomiHacker
started this conversation in
Ideas / Feature Requests
Replies: 1 comment 1 reply
-
We can divide the ortValues into 3 categories:
The third one has the potential for reuse. You can search "enable_memory_reuse" to see how it is implemented in ONNX Runtime. Overall, this is an NP problem. There is no best answer. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to deallocate the memory when the ortValue is out of it's lifetime. it will save a lot of memory usage for large models?
I saw there is some information about lifetime of each ortValue tracked in the code.
Beta Was this translation helpful? Give feedback.
All reactions