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
7d058da2
Commit
7d058da2
authored
Mar 26, 2018
by
Nick Korovaiko
Committed by
Robert Kimball
Mar 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switching to using get_users() (#744)
parent
2bf2214f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
graph_util.cpp
src/ngraph/graph_util.cpp
+2
-1
any.hpp
src/ngraph/pattern/op/any.hpp
+0
-2
placement.cpp
src/ngraph/placement.cpp
+2
-1
serializer.cpp
src/ngraph/serializer.cpp
+2
-1
No files found.
src/ngraph/graph_util.cpp
View file @
7d058da2
...
...
@@ -183,8 +183,9 @@ std::list<std::shared_ptr<ngraph::Node>>
result_list
.
push_back
(
node_map
[
independent_node
]);
independent_nodes
.
pop_front
();
for
(
auto
user
:
independent_node
->
users
())
for
(
auto
user
_sp
:
independent_node
->
get_
users
())
{
Node
*
user
=
user_sp
.
get
();
node_dependency_count
[
user
]
-=
1
;
size_t
count
=
node_dependency_count
[
user
];
if
(
count
==
0
)
...
...
src/ngraph/pattern/op/any.hpp
View file @
7d058da2
...
...
@@ -35,8 +35,6 @@ namespace ngraph
:
Pattern
(
"Any"
,
NodeVector
{
arg
},
predicate
)
{
add_output
(
arg
->
get_element_type
(),
arg
->
get_shape
());
//m_arguments.push_back(arg);
//const_cast<std::multiset<Node*>&>(arg->users()).insert(this);
}
};
}
...
...
src/ngraph/placement.cpp
View file @
7d058da2
...
...
@@ -91,8 +91,9 @@ static vector<unordered_set<shared_ptr<Node>>>
previous_placement
=
independent_node
->
get_placement
();
sorted_nodes
.
push_back
(
node_map
.
at
(
independent_node
));
for
(
Node
*
user_node
:
independent_node
->
users
())
for
(
auto
user
:
independent_node
->
get_
users
())
{
Node
*
user_node
=
user
.
get
();
node_dependency_count
.
at
(
user_node
)
-=
1
;
if
(
node_dependency_count
.
at
(
user_node
)
==
0
)
{
...
...
src/ngraph/serializer.cpp
View file @
7d058da2
...
...
@@ -304,8 +304,9 @@ static json write(const Function& f, bool binary_constant_data)
result_list
.
push_back
(
node_map
[
independent_node
]);
independent_nodes
.
pop_front
();
for
(
auto
user
:
independent_node
->
users
())
for
(
auto
sp_user
:
independent_node
->
get_
users
())
{
Node
*
user
=
sp_user
.
get
();
node_depencency_count
[
user
]
-=
1
;
size_t
count
=
node_depencency_count
[
user
];
if
(
count
==
0
)
...
...
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