oskar-inceptron opened a new pull request, #17548:
URL: https://github.com/apache/tvm/pull/17548

   It is currently not possible to access a `BlockBuilder`'s `Analyzer` 
instance from Python code, which would be useful e.g. when converting from 
front-end representations to Relax.
   
   This PR addresses that by adding a `get_analyzer` method to the Python 
`BlockBuilder` class. Behind the scenes, it uses the same FFI and code paths as 
when creating a standalone Python `Analyzer`, the only difference being where 
the underlying C++ instance originates from. To avoid object lifetime issues in 
Python code (which would be surprising given that it is a memory managed 
language), a C++ `BlockBuilder`'s `Analyzer` field is now a shared pointer.


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