From 516fe301ee036bca4018a282072c1226dcd38b68 Mon Sep 17 00:00:00 2001 From: tensor-tang Date: Sat, 29 Dec 2018 07:28:00 +0000 Subject: [PATCH] add comment in case of empty name test=develop --- paddle/fluid/inference/api/analysis_predictor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/inference/api/analysis_predictor.cc b/paddle/fluid/inference/api/analysis_predictor.cc index 5aceea7d01c..3aaec10ee2d 100644 --- a/paddle/fluid/inference/api/analysis_predictor.cc +++ b/paddle/fluid/inference/api/analysis_predictor.cc @@ -253,8 +253,8 @@ bool AnalysisPredictor::SetFeed(const std::vector &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 { -- GitLab