comaniac opened a new pull request #5703:
URL: https://github.com/apache/incubator-tvm/pull/5703


   For each pattern node, we defined `XXPattern` Python class for the FFI 
connection. We also define a user-friendly API such as `is_op` to have better 
user experience. Since `is_XX` APIs are just wrappers to the corresponding 
`XXPattern` class, this PR simplifies their implementations by turning the APIs 
to function aliases.
   
   In addition, this PR also makes the following changes:
   
   1. Add `is_constant`, `is_tuple`, and `is_tuple_get_item` APIs.
   2. Rename `is_input` to `is_var` to against `is_constant`.
   
   @mbrookhart I'm not quite sure if the second change makes sense to you or 
not so I intentionally separate it to the second commit. If you prefer 
`is_input`, I could just simply revert it.
   
   Also cc @masahi 


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to