diff --git a/paddle/fluid/inference/api/analysis_predictor.cc b/paddle/fluid/inference/api/analysis_predictor.cc index 5aceea7d01c93c90173fa28a53b0dc31cf2db2fe..3aaec10ee2d442f834c490d51d73a58421d2c38f 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 {