Commit 7bdb11de authored by amy.zhuang's avatar amy.zhuang

Remove unused variable.

parent c468bd71
...@@ -53,7 +53,8 @@ bool pass::MemoryLayout::run_on_function(shared_ptr<ngraph::Function> function) ...@@ -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 output = &node->get_outputs().at(oi_pair.output).get_tensor();
auto input = &node->get_inputs().at(oi_pair.input).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 // For destructive kernel, this should be the last use
// Non-destructive kernels can pass through if memory sharing is disabled // Non-destructive kernels can pass through if memory sharing is disabled
......
...@@ -177,7 +177,7 @@ bool runtime::cpu::pass::CPUMemoryOptimization::run_on_function(std::shared_ptr< ...@@ -177,7 +177,7 @@ bool runtime::cpu::pass::CPUMemoryOptimization::run_on_function(std::shared_ptr<
{ {
if (auto op_annotations = op->get_op_annotations()) 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: " NGRAPH_DEBUG << "cpu_memory_optimization: "
"in place oi, no in place concat"; "in place oi, no in place concat";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment