From 1e74d1478f50217f7c0067063343d16eeac2dcdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=B3=E6=99=93=E4=BC=9F?= <39303645+Shixiaowei02@users.noreply.github.com> Date: Mon, 14 Sep 2020 13:58:33 +0800 Subject: [PATCH] revert flatbuffers op_info interfaces, test=develop (#4311) --- lite/model_parser/flatbuffers/op_desc.h | 30 ++++--------------------- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/lite/model_parser/flatbuffers/op_desc.h b/lite/model_parser/flatbuffers/op_desc.h index f1ddddd271..1194f0df58 100644 --- a/lite/model_parser/flatbuffers/op_desc.h +++ b/lite/model_parser/flatbuffers/op_desc.h @@ -154,33 +154,11 @@ class OpDescView : public OpDescAPI { } const std::map>& inputs() const { - for (const auto& var : *desc_->inputs()) { - std::pair> pair; - pair.first = var->parameter()->str(); - auto& args_vec = pair.second; - if (var && var->arguments()) { - args_vec.resize(var->arguments()->size()); - for (size_t i = 0; i < var->arguments()->size(); ++i) { - args_vec[i] = (*var->arguments())[i]->str(); - } - } - inputs_.insert(std::move(pair)); - } + LITE_MODEL_INTERFACE_NOT_IMPLEMENTED; return inputs_; } const std::map>& outputs() const { - for (const auto& var : *desc_->outputs()) { - std::pair> pair; - pair.first = var->parameter()->str(); - auto& args_vec = pair.second; - if (var && var->arguments()) { - args_vec.resize(var->arguments()->size()); - for (size_t i = 0; i < var->arguments()->size(); ++i) { - args_vec[i] = (*var->arguments())[i]->str(); - } - } - outputs_.insert(std::move(pair)); - } + LITE_MODEL_INTERFACE_NOT_IMPLEMENTED; return outputs_; } std::map>* mutable_inputs() { @@ -224,8 +202,8 @@ class OpDescView : public OpDescAPI { private: std::string type_; - mutable std::map> inputs_; - mutable std::map> outputs_; + std::map> inputs_; + std::map> outputs_; std::map attrs_; std::map attr_types_; }; -- GitLab