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

   The motivation behind resource management is to ensure that we release all 
resources at the end of the session.
   
   Given the session management on the client side, it is possible for 
ReleaseResources to be called before all client side objects have been torn 
down.  And, it is possible for frees to be called in the window between session 
end and process termination.  (After those buffers have been freed in 
ReleaseResources.)
   
   Based on feedback from @adstraw and @Lunderberg on the usage of 
"released_runtime_buffers," we did an investigation into the post-release 
frees.  The cleanest solution is to keep the logic to free all buffers in 
ReleaseResources, and log a message on any frees that are executed outside a 
session.


-- 
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]

Reply via email to