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
4c961ddf
Commit
4c961ddf
authored
Feb 06, 2020
by
Animesh Jain
Committed by
Wei Chen
Feb 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Doc] ConvertLayout - Call RemoveUnunsedFunctions.
parent
e578777f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
docs/dev/convert_layout.rst
+5
-1
No files found.
docs/dev/convert_layout.rst
View file @
4c961ddf
...
...
@@ -226,7 +226,11 @@ ConvertLayout pass is extremely easy to use. The pass is not a part of default r
dtype_dict=dtype_dict)
# Convert the layout to NCHW
mod = relay.transform.ConvertLayout('NCHW')(mod)
# RemoveUnunsedFunctions is used to clean up the graph.
seq = relay.transform.Sequential([relay.transform.RemoveUnusedFunctions(),
relay.transform.ConvertLayout('NCHW')])
with relay.transform.PassContext(opt_level=3):
mod = seq(mod)
# Call relay compilation
with relay.build_config(opt_level=3):
...
...
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