Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
c9bbea96
Commit
c9bbea96
authored
Jan 29, 2019
by
Jimin Ha
Committed by
Scott Cyphers
Jan 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove true user check for Slice sinker (#2383)
parent
7f7f425f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
reshape_sinking.cpp
src/ngraph/pass/reshape_sinking.cpp
+5
-2
No files found.
src/ngraph/pass/reshape_sinking.cpp
View file @
c9bbea96
...
...
@@ -529,8 +529,11 @@ bool ngraph::pass::ReshapeSinking::run_on_function(std::shared_ptr<ngraph::Funct
// scenarios and marks some reshapes as too "toxic" to sink
// For now, this heuristic works really well.
// Note, get_users(*true*) which means we only care about
// live users of Reshape
if
(
slice
->
get_argument
(
0
)
->
get_users
(
true
).
size
()
==
1
)
// live users of Reshape. However get_users(*true*) cause
// significant time increase on graphs with many slice ops,
// so for now we are removing "true" check and let backend
// handle reshape sinking for slice operation.
if
(
slice
->
get_argument
(
0
)
->
get_users
().
size
()
==
1
)
{
sink_slice
(
slice
,
reorders
,
reshapes_to_delete
);
}
...
...
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