My apologies! I somehow missed this last week.
Yeah, the current TypePattern is matching the full type via StructuralEqual. One possibility to clean this up slightly is to add a rule of: 1) If it's a TensorType 2) and the pattern's shape is () 3) only check the dtype That would only take a handful of lines in the C++ matcher to implement. It's a little specialized, but easier that doing it with callbacks. --- [Visit Topic](https://discuss.tvm.ai/t/pattenlang-how-to-match-op-according-to-element-type-of-input-and-output/6846/8) 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/54f205b3e3e79cc4470950cb91ab5dfc207314384b12ae53244073c607615e54).