projects
/
platform
/
upstream
/
tvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5a746d
)
fix test (#3525)
author
雾雨魔理沙
<lolisa@marisa.moe>
Wed, 10 Jul 2019 05:43:37 +0000
(22:43 -0700)
committer
Jared 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
patch
|
blob
|
history
diff --git
a/tests/python/relay/test_pass_to_a_normal_form.py
b/tests/python/relay/test_pass_to_a_normal_form.py
index
d5d44fd
..
8657290
100644
(file)
--- a/
tests/python/relay/test_pass_to_a_normal_form.py
+++ b/
tests/python/relay/test_pass_to_a_normal_form.py
@@
-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")