Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
3f16829a
Commit
3f16829a
authored
Jul 09, 2019
by
雾雨魔理沙
Committed by
Jared Roesch
Jul 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test (#3525)
parent
b5a746d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
tests/python/relay/test_pass_to_a_normal_form.py
+3
-4
No files found.
tests/python/relay/test_pass_to_a_normal_form.py
View file @
3f16829a
...
...
@@ -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"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment