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
ae1ba36d
Commit
ae1ba36d
authored
Aug 13, 2019
by
雾雨魔理沙
Committed by
Thierry Moreau
Aug 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix (#3769)
parent
83bef9ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
python/tvm/relay/expr_functor.py
+1
-1
tests/python/relay/test_expr_functor.py
+5
-0
No files found.
python/tvm/relay/expr_functor.py
View file @
ae1ba36d
...
...
@@ -249,7 +249,7 @@ class ExprMutator(ExprFunctor):
return
con
def
visit_match
(
self
,
m
):
return
Match
(
self
.
visit
(
m
.
data
),
[
Clause
(
c
.
lhs
,
self
.
visit
(
c
.
rhs
))
for
c
in
m
.
pattern
])
return
Match
(
self
.
visit
(
m
.
data
),
[
Clause
(
c
.
lhs
,
self
.
visit
(
c
.
rhs
))
for
c
in
m
.
clauses
])
def
visit_ref_create
(
self
,
r
):
return
RefCreate
(
self
.
visit
(
r
.
value
))
...
...
tests/python/relay/test_expr_functor.py
View file @
ae1ba36d
...
...
@@ -121,6 +121,10 @@ def test_memo():
check_visit
(
expr
)
def
test_match
():
p
=
relay
.
prelude
.
Prelude
()
check_visit
(
p
.
mod
[
p
.
map
])
if
__name__
==
"__main__"
:
test_constant
()
test_tuple
()
...
...
@@ -134,3 +138,4 @@ if __name__ == "__main__":
test_ref_read
()
test_ref_write
()
test_memo
()
test_match
()
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