Skip to content

Commit

Permalink
Switch to ov shape_utils (#818)
Browse files Browse the repository at this point in the history
  • Loading branch information
praasz authored Jan 10, 2024
1 parent b8ff139 commit 3d321c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/nvidia_plugin/src/ops/mvn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

#include "mvn.hpp"

#include "openvino/core/shape_util.hpp"
#include "openvino/core/type.hpp"
#include "openvino/op/constant.hpp"
#include "openvino/op/mvn.hpp"
#include "ngraph/shape_util.hpp"

#include <cuda/descriptor_utils.hpp>
#include <cuda_operation_registry.hpp>
Expand Down Expand Up @@ -224,7 +224,7 @@ ov::Shape MvnOp::makeReducedShape(const ov::Node& node) {
}
axes.emplace(static_cast<size_t>((v + size) % size));
}
reducedShape = ngraph::reduce(reducedShape, axes, true);
reducedShape = ov::util::reduce_keep_dims(reducedShape, axes);
if (reducedShape == node.get_input_shape(0)) return {};
return reducedShape;
}
Expand Down

0 comments on commit 3d321c9

Please sign in to comment.