From 8264bae7ed096b16988388fa7c4069f2be077183 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=91=D0=B0=D1=80?= =?utf8?q?=D0=B0=D0=BD=D0=BD=D0=B8=D0=BA=D0=BE=D0=B2/AI=20Tools=20Lab=20/S?= =?utf8?q?RR/Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Thu, 13 Dec 2018 15:02:58 +0300 Subject: [PATCH] Fix build issue #2668 (#2669) - Build failure issued by merging of #2646: convertBlob return value changed - Small code style changes Signed-off-by: Sergei Barannikov --- contrib/nnc/include/core/modelIR/operations/ConstantOp.h | 8 ++++---- contrib/nnc/passes/caffe_frontend/caffe_op_creator.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/contrib/nnc/include/core/modelIR/operations/ConstantOp.h b/contrib/nnc/include/core/modelIR/operations/ConstantOp.h index 92d22f4..46d4125 100644 --- a/contrib/nnc/include/core/modelIR/operations/ConstantOp.h +++ b/contrib/nnc/include/core/modelIR/operations/ConstantOp.h @@ -25,15 +25,15 @@ namespace ops { class ConstantOp : public Operation { public: - ConstantOp(const std::shared_ptr& value) : - Operation(Type::constant, {}), _value(value) { + ConstantOp(const std::shared_ptr& value) + : Operation(Type::constant, {}), _value(value) { setOutputShape(0, _value->getShape()); } - const std::shared_ptr& getValue() const { return _value; } + const std::shared_ptr& getValue() const { return _value; } private: - const std::shared_ptr& _value; + const std::shared_ptr& _value; }; } // namespace ops diff --git a/contrib/nnc/passes/caffe_frontend/caffe_op_creator.cpp b/contrib/nnc/passes/caffe_frontend/caffe_op_creator.cpp index 6657ec9..e149d53 100644 --- a/contrib/nnc/passes/caffe_frontend/caffe_op_creator.cpp +++ b/contrib/nnc/passes/caffe_frontend/caffe_op_creator.cpp @@ -547,7 +547,7 @@ std::vector CaffeOpCreator::convertEmbed(const caffe::LayerParameter& layer, const std::vector& inputs) { const auto& params = layer.embed_param(); - auto data = createOp(layer.name() + ".weights", *convertBlob(layer.blobs(0))); + auto data = createOp(layer.name() + ".weights", convertBlob(layer.blobs(0))); // FIXME Indices in Caffe have floating type, while in ModelIR they are integral. auto result = createOp(layer.name(), data->getOutput(0), inputs[0], 0); -- 2.7.4