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
291d927c
Commit
291d927c
authored
Jun 18, 2018
by
Nick Korovaiko
Committed by
Adam Procter
Jun 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
making arg getters constant (#1121)
parent
cc6f05de
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
node.cpp
src/ngraph/node.cpp
+2
-2
node.hpp
src/ngraph/node.hpp
+2
-2
get_output_element.cpp
src/ngraph/op/get_output_element.cpp
+1
-1
get_output_element.hpp
src/ngraph/op/get_output_element.hpp
+1
-1
No files found.
src/ngraph/node.cpp
View file @
291d927c
...
...
@@ -138,7 +138,7 @@ void Node::set_placement(Placement placement)
m_placement
=
placement
;
}
std
::
shared_ptr
<
Node
>
Node
::
get_argument
(
size_t
index
)
std
::
shared_ptr
<
Node
>
Node
::
get_argument
(
size_t
index
)
const
{
for
(
auto
&
i
:
get_inputs
())
{
...
...
@@ -158,7 +158,7 @@ Node::~Node()
}
}
NodeVector
Node
::
get_arguments
()
NodeVector
Node
::
get_arguments
()
const
{
NodeVector
result
;
for
(
auto
&
i
:
get_inputs
())
...
...
src/ngraph/node.hpp
View file @
291d927c
...
...
@@ -165,9 +165,9 @@ namespace ngraph
std
::
unordered_set
<
descriptor
::
Tensor
*>
liveness_new_list
;
std
::
unordered_set
<
descriptor
::
Tensor
*>
liveness_free_list
;
virtual
NodeVector
get_arguments
()
;
//
const;
virtual
NodeVector
get_arguments
()
const
;
std
::
shared_ptr
<
Node
>
get_argument
(
size_t
index
);
std
::
shared_ptr
<
Node
>
get_argument
(
size_t
index
)
const
;
virtual
std
::
shared_ptr
<
Node
>
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
=
0
;
...
...
src/ngraph/op/get_output_element.cpp
View file @
291d927c
...
...
@@ -42,7 +42,7 @@ shared_ptr<Node> op::GetOutputElement::copy_with_new_args(const NodeVector& new_
return
make_shared
<
GetOutputElement
>
(
new_args
.
at
(
0
),
m_n
);
}
NodeVector
op
::
GetOutputElement
::
get_arguments
()
NodeVector
op
::
GetOutputElement
::
get_arguments
()
const
{
return
NodeVector
{
get_inputs
().
at
(
0
).
get_output
().
get_node
()};
}
...
...
src/ngraph/op/get_output_element.hpp
View file @
291d927c
...
...
@@ -37,7 +37,7 @@ namespace ngraph
/// \return The index of the tuple element to get.
size_t
get_n
()
const
{
return
m_n
;
}
virtual
NodeVector
get_arguments
()
override
;
virtual
NodeVector
get_arguments
()
const
override
;
protected
:
virtual
void
generate_adjoints
(
autodiff
::
Adjoints
&
adjoints
,
...
...
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