zhiics commented on a change in pull request #4881: [WIP] Fixing an Infinite Loop case in UnmatchedChecker. URL: https://github.com/apache/incubator-tvm/pull/4881#discussion_r384077999
########## File path: tests/python/relay/test_pass_unmatched_cases.py ########## @@ -273,3 +274,27 @@ def test_tuple_match(): clause = relay.Clause(relay.PatternTuple([relay.PatternVar(a), relay.PatternVar(b)]), a + b) x = relay.Match(relay.Tuple([relay.const(1), relay.const(1)]), [clause]) assert len(unmatched_cases(x)) == 0 + + +def test_inf_loop_case(): + code = """ Review comment: Should this be aligned in the raw string? Not sure if it will cause parsing problem. ---------------------------------------------------------------- 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 With regards, Apache Git Services