From 2bb7fd817718794eb3fdef87207bf4a7596c606c Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Thu, 23 Feb 2017 15:09:09 +0800 Subject: [PATCH] Remove padde namespace in some code. --- paddle/gserver/evaluators/Evaluator.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/paddle/gserver/evaluators/Evaluator.h b/paddle/gserver/evaluators/Evaluator.h index 6a122704ea..c4110ec1c0 100644 --- a/paddle/gserver/evaluators/Evaluator.h +++ b/paddle/gserver/evaluators/Evaluator.h @@ -145,9 +145,9 @@ public: * * @return The evaluate value(metric). */ - virtual real getValue(const std::string& name, paddle::Error* err) const { + virtual real getValue(const std::string& name, Error* err) const { if (name != config_.name()) { - *err = paddle::Error("no such name of evaluator %s", name.c_str()); + *err = Error("no such name of evaluator %s", name.c_str()); return .0f; } return this->getValueImpl(); @@ -164,10 +164,9 @@ public: * @param err: The error state. nullptr means don't care. * @return the evaluator type string. */ - virtual std::string getType(const std::string& name, - paddle::Error* err) const { + virtual std::string getType(const std::string& name, Error* err) const { if (name != config_.name()) { - *err = paddle::Error("no such name of evaluator %s", name.c_str()); + *err = Error("no such name of evaluator %s", name.c_str()); return std::string(); } return this->getTypeImpl(); -- GitLab