Skip to content

Commit

Permalink
add keep_dims to the reshape condition
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-cv committed Jun 7, 2021
1 parent dd47b89 commit 37d022e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inference-engine/src/cldnn_engine/ops/reduce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void CreateReduceOp(Program& p, const std::shared_ptr<ngraph::Node>& op, cldnn::

auto resultLayerName = layerName;
auto out_dims = op->get_output_shape(0).size();
if (out_dims == 3 && rank >= 4) {
if (out_dims == 3 && !keep_dims && rank >= 4) {
resultLayerName = layerName + "_reshape";
auto out_shape = op->get_output_shape(0);
cldnn::tensor outTensor;
Expand Down

0 comments on commit 37d022e

Please sign in to comment.