Unverified Commit d33da489 authored by Nick Korovaiko's avatar Nick Korovaiko Committed by GitHub

Update memory_layout.cpp

parent 6184b3fc
......@@ -69,8 +69,9 @@ bool pass::MemoryLayout::run_on_function(shared_ptr<ngraph::Function> function)
if ((node->liveness_free_list.count(input) != 0 ||
std::dynamic_pointer_cast<op::GetOutputElement>(node) ||
(m_disable_memory_sharing && !oi_pair.destructive &&
!input_node->is_parameter())) &&
!input_node->is_parameter() && !input_node->is_constant())) &&
node->liveness_new_list.count(output) != 0)
{
in_place_outputs.insert({output, input});
reused_inputs.insert(input);
......
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