ganler commented on code in PR #15694: URL: https://github.com/apache/tvm/pull/15694#discussion_r1321791899
########## src/relax/ir/dataflow_matcher.cc: ########## @@ -443,6 +444,92 @@ bool DFPatternMatcher::VisitDFPattern_(const ShapePatternNode* op, const Expr& e return false; } +Optional<Bool> SameShapeConstraintNode::IsConstraintSatisfied( Review Comment: Oh I see. Computing a complement constraint can be very useful to debug the existance of optmizations. In the exemplary case you demonstrated, we may indicate/warn the users that if additional constraints/invariants can be satisfied, larger set of optimizations could be applied. -- 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]
