提交 2bb7fd81 编写于 作者: Y Yu Yang

Remove padde namespace in some code.

上级 b6ac64a3
...@@ -145,9 +145,9 @@ public: ...@@ -145,9 +145,9 @@ public:
* *
* @return The evaluate value(metric). * @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()) { 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 .0f;
} }
return this->getValueImpl(); return this->getValueImpl();
...@@ -164,10 +164,9 @@ public: ...@@ -164,10 +164,9 @@ public:
* @param err: The error state. nullptr means don't care. * @param err: The error state. nullptr means don't care.
* @return the evaluator type string. * @return the evaluator type string.
*/ */
virtual std::string getType(const std::string& name, virtual std::string getType(const std::string& name, Error* err) const {
paddle::Error* err) const {
if (name != config_.name()) { 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 std::string();
} }
return this->getTypeImpl(); return this->getTypeImpl();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册