未验证 提交 0ca19802 编写于 作者: 石晓伟 提交者: GitHub

input_vars of flatbuffers impl, test=develop (#4147)

* input_vars of flatbuffers impl, test=develop

* add comments in build.sh, test=develop
上级 292f52cc
......@@ -171,8 +171,15 @@ class OpDescView : public OpDescAPI {
}
std::vector<std::string> input_vars() const {
NotImplemented();
return std::vector<std::string>();
VLOG(5) << "This function call is expensive.";
std::vector<std::string> res;
for (const auto& var : *(desc_->inputs())) {
if (var && var->arguments()) {
res.emplace_back(var->arguments()->begin()->c_str(),
var->arguments()->end()->c_str());
}
}
return res;
}
std::vector<std::string> output_vars() const {
......
......@@ -436,6 +436,7 @@ function print_usage {
echo -e "--build_python: (OFF|ON); controls whether to publish python api lib (ANDROID and IOS is not supported)"
echo -e "--build_java: (OFF|ON); controls whether to publish java api lib (Only ANDROID is supported)"
echo -e "--build_dir: directory for building"
echo -e "--enable_flatbuffers_view: (OFF|ON); Use the flatbuffers read-only view to load the model. If ON, the naive buffer will no longer be supported."
echo
echo -e "argument choices:"
echo -e "--arm_os:\t android|ios|ios64"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册