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
25a7b46c
Commit
25a7b46c
authored
Dec 06, 2018
by
xqdan
Committed by
Tianqi Chen
Dec 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix dump ir (#2235)
parent
7f32f0b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/tvm/build_module.py
+2
-2
No files found.
python/tvm/build_module.py
View file @
25a7b46c
...
...
@@ -5,8 +5,8 @@ LoweredFunc and compiled Module.
"""
from
__future__
import
absolute_import
as
_abs
import
warnings
import
types
from
._ffi.function
import
Function
from
._ffi.node
import
NodeBase
,
register_node
from
.
import
api
from
.
import
_api_internal
...
...
@@ -69,7 +69,7 @@ class DumpIR(object):
vset
[
k
]
=
v
for
k
,
v
in
vset
.
items
():
self
.
_recover_list
.
append
(
recover
)
vset
[
k
]
=
self
.
decorate
(
v
)
if
isinstance
(
v
,
types
.
FunctionType
)
else
v
vset
[
k
]
=
self
.
decorate
(
v
)
if
isinstance
(
v
,
Function
)
else
v
def
decorate_custompass
(
self
,
custom_pass
):
"""decorate given list of custom passes, and return decorated passes"""
...
...
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