提交 516fe301 编写于 作者: T tensor-tang

add comment in case of empty name

test=develop
上级 b9c64563
...@@ -253,8 +253,8 @@ bool AnalysisPredictor::SetFeed(const std::vector<PaddleTensor> &inputs, ...@@ -253,8 +253,8 @@ bool AnalysisPredictor::SetFeed(const std::vector<PaddleTensor> &inputs,
if (config_.specify_input_name) { if (config_.specify_input_name) {
auto name = inputs[i].name; auto name = inputs[i].name;
if (feed_names_.find(name) == feed_names_.end()) { if (feed_names_.find(name) == feed_names_.end()) {
LOG(ERROR) << "feed names from program do not have name: " << name LOG(ERROR) << "feed names from program do not have name: [" << name
<< " from specified input"; << "] from specified input";
} }
idx = feed_names_[name]; idx = feed_names_[name];
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册