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
312802f3
Commit
312802f3
authored
Jan 11, 2019
by
Haichen Shen
Committed by
Tianqi Chen
Jan 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add simplify pass in the Relay interpreter (#2417)
parent
547a0913
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
python/tvm/relay/backend/interpreter.py
+3
-1
No files found.
python/tvm/relay/backend/interpreter.py
View file @
312802f3
...
...
@@ -218,7 +218,9 @@ class Interpreter(Executor):
"""
# TODO: We need to move this optimization code into the optimizer/pass manager
ck_expr
=
ir_pass
.
infer_type
(
expr
,
mod
=
self
.
mod
)
fused_expr
=
ir_pass
.
fuse_ops
(
ck_expr
)
simp_expr
=
ir_pass
.
simplify_inference
(
ck_expr
)
ck_simp
=
ir_pass
.
infer_type
(
simp_expr
,
mod
=
self
.
mod
)
fused_expr
=
ir_pass
.
fuse_ops
(
ck_simp
)
ck_fused
=
ir_pass
.
infer_type
(
fused_expr
,
mod
=
self
.
mod
)
return
ck_fused
...
...
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