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
6457ed2e
Commit
6457ed2e
authored
Jul 27, 2018
by
Nick Korovaiko
Committed by
Scott Cyphers
Jul 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch to using get_subgraph_outputs in LoopKernel (#1255)
parent
953c65f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
cpu_loop_kernel_fusion.cpp
src/ngraph/runtime/cpu/pass/cpu_loop_kernel_fusion.cpp
+1
-15
No files found.
src/ngraph/runtime/cpu/pass/cpu_loop_kernel_fusion.cpp
View file @
6457ed2e
...
...
@@ -94,22 +94,8 @@ public:
for
(
auto
e
:
m_graphs
)
{
auto
&
lkg
=
e
.
second
;
std
::
unordered_set
<
std
::
shared_ptr
<
Node
>>
graph_nodes
{
lkg
.
m_nodes
.
begin
(),
lkg
.
m_nodes
.
end
()};
NodeVector
member_outputs
;
auto
has_external_user
=
[
&
graph_nodes
](
std
::
shared_ptr
<
Node
>
u
)
{
return
graph_nodes
.
count
(
u
)
==
0
;
};
for
(
auto
member
:
lkg
.
m_nodes
)
{
auto
member_users
=
member
->
get_users
();
if
(
std
::
any_of
(
member_users
.
cbegin
(),
member_users
.
cend
(),
has_external_user
))
{
member_outputs
.
push_back
(
member
);
}
}
NodeVector
member_outputs
=
ngraph
::
get_subgraph_outputs
(
lkg
.
m_nodes
,
NodeVector
{});
auto
lk
=
std
::
make_shared
<
runtime
::
cpu
::
op
::
LoopKernel
>
(
lkg
.
m_nodes
,
member_outputs
,
lkg
.
m_inputs
);
lks
.
push_back
(
lk
);
...
...
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