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
692101a7
Commit
692101a7
authored
Jun 12, 2018
by
Nick Korovaiko
Committed by
Adam Procter
Jun 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace Check (#1097)
parent
e682af65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
input.cpp
src/ngraph/descriptor/input.cpp
+10
-0
No files found.
src/ngraph/descriptor/input.cpp
View file @
692101a7
...
...
@@ -37,6 +37,16 @@ void Input::replace_output(Output& new_output)
new_output
.
add_input
(
this
);
m_output
=
&
new_output
;
m_src_node
=
std
::
shared_ptr
<
Node
>
(
new_output
.
get_node
());
static
const
auto
nerc
=
std
::
getenv
(
"NGRAPH_ENABLE_REPLACE_CHECK"
);
if
(
nerc
)
{
//the result of copy_with_new_args will be thrown away or
//an exception will be thrown by `m_node`'s class c-tor
//if a new input violates one of the type checks in the c-tor.
(
this
->
m_node
->
copy_with_new_args
(
this
->
m_node
->
get_arguments
()));
}
}
void
Input
::
replace_output
(
std
::
shared_ptr
<
Node
>
node
,
size_t
i
)
...
...
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