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
e54a9a97
Unverified
Commit
e54a9a97
authored
Mar 18, 2020
by
Tianqi Chen
Committed by
GitHub
Mar 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TUTORIAL] Fix vta tutorial after relay function refactor (#5095)
parent
b64a843a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
vta/python/vta/top/graphpack.py
+5
-5
No files found.
vta/python/vta/top/graphpack.py
View file @
e54a9a97
...
...
@@ -368,11 +368,11 @@ def get_subgraph(expr, start_name, stop_name, start_name_idx, stop_name_idx, cou
def
_recursion
(
anf
,
start_found
,
stop_found
,
operator_current_idx
):
""" Helper to obtain the subgraph.
"""
if
isinstance
(
anf
,
relay
.
expr
.
Function
):
return
relay
.
expr
.
Function
(
anf
.
params
,
_recursion
(
anf
.
body
,
start_found
,
stop_found
,
operator_current_idx
),
anf
.
ret_type
,
anf
.
type_params
,
anf
.
attrs
)
if
isinstance
(
anf
,
relay
.
Function
):
return
relay
.
Function
(
anf
.
params
,
_recursion
(
anf
.
body
,
start_found
,
stop_found
,
operator_current_idx
),
anf
.
ret_type
,
anf
.
type_params
,
anf
.
attrs
)
if
isinstance
(
anf
,
relay
.
expr
.
Let
):
value
=
anf
.
value
if
isinstance
(
value
,
relay
.
expr
.
Call
):
...
...
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