Skip to content

Commit

Permalink
fix test (#3525)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarisaKirisame authored and jroesch committed Jul 10, 2019
1 parent b5a746d commit 3f16829
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 3f16829

Please sign in to comment.