fix test (#3525)
author雾雨魔理沙 <lolisa@marisa.moe>
Wed, 10 Jul 2019 05:43:37 +0000 (22:43 -0700)
committerJared Roesch <roeschinc@gmail.com>
Wed, 10 Jul 2019 05:43:37 +0000 (22:43 -0700)
tests/python/relay/test_pass_to_a_normal_form.py

index d5d44fd..8657290 100644 (file)
@@ -100,17 +100,16 @@ def test_if():
 def test_recursion():
     """
     Program:
-       let sum_twice(n: i32) -> i32 = {
+       let f(n: i32) -> i32 = {
           m = (n * 2)
           if (n == 0) {
               return m;
           } else {
-              return m + sum(n - 1);
+              return m + f(n - 1);
           }
        }
-       sum_twice(5);
+       f(5);
     """
-    return # cannot be run as fuse_ops need to recursively visit
     mod = relay.Module()
     i64 = relay.TensorType((), 'int64')
     f = relay.GlobalVar("f")