From: Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자 Date: Thu, 13 Dec 2018 12:02:58 +0000 (+0300) Subject: Fix build issue #2668 (#2669) X-Git-Tag: nncc_backup~1081 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8264bae7ed096b16988388fa7c4069f2be077183;p=platform%2Fcore%2Fml%2Fnnfw.git 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 --- 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);