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
7bdb11de
Commit
7bdb11de
authored
Oct 25, 2018
by
amy.zhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused variable.
parent
c468bd71
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
memory_layout.cpp
src/ngraph/pass/memory_layout.cpp
+2
-1
cpu_memory_optimization.cpp
src/ngraph/runtime/cpu/pass/cpu_memory_optimization.cpp
+1
-1
No files found.
src/ngraph/pass/memory_layout.cpp
View file @
7bdb11de
...
...
@@ -53,7 +53,8 @@ bool pass::MemoryLayout::run_on_function(shared_ptr<ngraph::Function> function)
{
auto
output
=
&
node
->
get_outputs
().
at
(
oi_pair
.
output
).
get_tensor
();
auto
input
=
&
node
->
get_inputs
().
at
(
oi_pair
.
input
).
get_tensor
();
auto
input_node
=
node
->
get_inputs
().
at
(
oi_pair
.
input
).
get_output
().
get_node
();
auto
input_node
=
node
->
get_inputs
().
at
(
oi_pair
.
input
).
get_output
().
get_node
();
// For destructive kernel, this should be the last use
// Non-destructive kernels can pass through if memory sharing is disabled
...
...
src/ngraph/runtime/cpu/pass/cpu_memory_optimization.cpp
View file @
7bdb11de
...
...
@@ -177,7 +177,7 @@ bool runtime::cpu::pass::CPUMemoryOptimization::run_on_function(std::shared_ptr<
{
if
(
auto
op_annotations
=
op
->
get_op_annotations
())
{
for
(
auto
oi_pair
:
op_annotations
->
get_in_place_oi_pairs
()
)
if
(
op_annotations
->
get_in_place_oi_pairs
().
size
()
>
0
)
{
NGRAPH_DEBUG
<<
"cpu_memory_optimization: "
"in place oi, no in place concat"
;
...
...
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