未验证 提交 1e74d147 编写于 作者: 石晓伟 提交者: GitHub

revert flatbuffers op_info interfaces, test=develop (#4311)

上级 069e4c52
......@@ -154,33 +154,11 @@ class OpDescView : public OpDescAPI {
}
const std::map<std::string, std::vector<std::string>>& inputs() const {
for (const auto& var : *desc_->inputs()) {
std::pair<std::string, std::vector<std::string>> 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<std::string, std::vector<std::string>>& outputs() const {
for (const auto& var : *desc_->outputs()) {
std::pair<std::string, std::vector<std::string>> 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<std::string, std::vector<std::string>>* mutable_inputs() {
......@@ -224,8 +202,8 @@ class OpDescView : public OpDescAPI {
private:
std::string type_;
mutable std::map<std::string, std::vector<std::string>> inputs_;
mutable std::map<std::string, std::vector<std::string>> outputs_;
std::map<std::string, std::vector<std::string>> inputs_;
std::map<std::string, std::vector<std::string>> outputs_;
std::map<std::string, Any> attrs_;
std::map<std::string, AttrType> attr_types_;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册