From 30fcdf6d1eb3ce7b28eecca58ea8defe5d824ba8 Mon Sep 17 00:00:00 2001 From: liubo-intel Date: Wed, 29 Sep 2021 09:38:57 +0800 Subject: [PATCH] apply review comments --- ngraph/frontend/paddlepaddle/src/op/prior_box.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ngraph/frontend/paddlepaddle/src/op/prior_box.cpp b/ngraph/frontend/paddlepaddle/src/op/prior_box.cpp index f2724015dd6a3f..5a983902338240 100644 --- a/ngraph/frontend/paddlepaddle/src/op/prior_box.cpp +++ b/ngraph/frontend/paddlepaddle/src/op/prior_box.cpp @@ -16,7 +16,7 @@ using namespace default_opset; using namespace element; namespace detail { namespace { -std::shared_ptr make_slice(std::shared_ptr node, int64_t start, int64_t end) { +std::shared_ptr make_slice(const std::shared_ptr& node, int64_t start, int64_t end) { return std::make_shared(node, Constant::create(i64, Shape{1}, std::vector{start}), Constant::create(i64, Shape{1}, std::vector{end}), @@ -54,7 +54,7 @@ NamedOutputs prior_box(const NodeContext& node) { auto node_boxes_origin = node_prior_box_split->output(0); auto node_variances_origin = node_prior_box_split->output(1); - auto out_shape = + const auto out_shape = std::make_shared(NodeVector{output_shape_slice, Constant::create(i64, {2}, {-1, 4})}, 0); auto node_boxes_reshape = std::make_shared(node_boxes_origin, out_shape, true);