add comment in case of empty name

test=develop
revert-15207-remove_op_handle_lock_and_fix_var
tensor-tang 6 years ago
parent b9c645639b
commit 516fe301ee

@ -253,8 +253,8 @@ bool AnalysisPredictor::SetFeed(const std::vector<PaddleTensor> &inputs,
if (config_.specify_input_name) {
auto name = inputs[i].name;
if (feed_names_.find(name) == feed_names_.end()) {
LOG(ERROR) << "feed names from program do not have name: " << name
<< " from specified input";
LOG(ERROR) << "feed names from program do not have name: [" << name
<< "] from specified input";
}
idx = feed_names_[name];
} else {

Loading…
Cancel
Save