summaryrefslogtreecommitdiff
path: root/inference-engine/thirdparty/clDNN/src/include/reshape_inst.h
diff options
context:
space:
mode:
Diffstat (limited to 'inference-engine/thirdparty/clDNN/src/include/reshape_inst.h')
-rw-r--r--inference-engine/thirdparty/clDNN/src/include/reshape_inst.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/inference-engine/thirdparty/clDNN/src/include/reshape_inst.h b/inference-engine/thirdparty/clDNN/src/include/reshape_inst.h
index 901257845..1ac9fdfcb 100644
--- a/inference-engine/thirdparty/clDNN/src/include/reshape_inst.h
+++ b/inference-engine/thirdparty/clDNN/src/include/reshape_inst.h
@@ -30,10 +30,12 @@ struct typed_program_node<reshape> : public typed_program_node_base<reshape>
public:
using parent::parent;
- decltype(auto) input() const { return get_dependency(0); }
+ program_node& input() const { return get_dependency(0); }
bool is_in_place() const
{
+ if (this->is_output() || this->get_fused_activation_func() != activation_none)
+ return false;
return (!this->get_output_layout().data_padding && !input().get_output_layout(false).data_padding);
}
};