echuraev opened a new pull request #8175:
URL: https://github.com/apache/tvm/pull/8175


   When we throw exception from autoreleasepool, then the resources won't
   be released in proper way. In the documentation we can see that "When
   the block is exited with an exception, the pool is not drained.".
   
   Link on the documentation:
   https://clang.llvm.org/docs/AutomaticReferenceCounting.html#autoreleasepool
   
   Implemented a wrapper which handles all exceptions in autoreleasepool
   block and throw them after this block.
   
   Thanks for contributing to TVM!   Please refer to guideline 
https://tvm.apache.org/docs/contribute/ for useful information and tips. After 
the pull request is submitted, please request code reviews from 
[Reviewers](https://github.com/apache/incubator-tvm/blob/master/CONTRIBUTORS.md#reviewers)
 by @ them in the pull request thread.
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to