Lunderberg opened a new pull request, #15992: URL: https://github.com/apache/tvm/pull/15992
Prior to this commit, the `VarBinding` and `MatchCast` had equivalent `Expr value` fields. For use cases that need the bound value (e.g. collecting known values), this required downcasting to each subclass. This commit moves the `Expr value` to the base `Binding` class, removing the need for the downcasting. No impact to either C++ or Python usage is expected. On the C++ side, all use of `VarBindingNode::value` or `MatchCastNode::value` will now access `BindingNode::value`. On the Python side, all dynamic access of `binding_obj.value` will access the new field. -- 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]
