Hi Cody,
There are some examples in the unit tests of matching const nodes with specific values: https://github.com/apache/incubator-tvm/blob/a072da0588c542757d2815832b7f010f530b2428/tests/python/relay/test_dataflow_pattern.py#L685-L759 Adding ConstantPattern with an optional value is probably a good, quick solution for the case when you need a constant but don't care what the value is. I agree that extending the pattern language makes more sense, right now it's really focused on chained CallNodes. It's missing a lot of the more complex functionality (Functions, Match, If, While, etc). I'm not sure how much of that we want to be matching on, but I have no problems adding them to the langauge as needed. --- [Visit Topic](https://discuss.tvm.ai/t/patternlang-match-constant-nodes/6835/3) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/bbe08abd12490e1ea2a6d41470fb194587e30ae8e88fde63d9456a7dc8abaca7).