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

   Add __init__ method to SearchStrategy class to prevent direct instantiation 
of the abstract class. This raises a TypeError with a helpful error message 
instead of causing a segmentation fault when SearchStrategy() is called 
directly or passed to TuneContext.
   
   Also add additional check in TuneContext.__init__ to ensure abstract 
SearchStrategy instances are not used.
   
   Fixes #18268


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to