Lunderberg opened a new pull request, #11129: URL: https://github.com/apache/tvm/pull/11129
Previously, `is_positive_int`, `is_negative_int`, `is_const_int`, and `as_const_int` had nearly duplicate type-checking logic. This allowed handling of Broadcast nodes to be diverge between the implementations. (e.g. `is_const_int(Broadcast(4,1), 4)` returns true, but `is_positive_int(Broadcast(4,1))` returns false.) This PR changes `as_const_int` to contain the type-checking logic, including the handling of Broadcast nodes, with the other three functions implemented in terms of `as_const_int`. -- 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]
