Skip to content

Commit

Permalink
fix test (apache#3525)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarisaKirisame authored and Wei Chen committed Jul 11, 2019
1 parent dbe1758 commit 9072852
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/python/relay/test_pass_to_a_normal_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 9072852

Please sign in to comment.