rkimball commented on pull request #7480:
URL: https://github.com/apache/tvm/pull/7480#issuecomment-782464224


   There is a better solution. It is still not correct to raise exception from 
a destructor and we should not rely on bad code for error messages. A proper 
alternative is to print an error message when we catch an exception. This will 
give you the exact result you want. raising an exception in a destructor does 
not raise an exception, it just prints a message that you are trying to raise 
an exception where you are not supposed to.
   


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