From 5250b9b21321da5b5b4aa584aa9e4f75ad314036 Mon Sep 17 00:00:00 2001 From: Liang Zhao Date: Tue, 14 Feb 2017 11:14:21 -0800 Subject: [PATCH] fix classificationError input --- paddle/gserver/evaluators/Evaluator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/gserver/evaluators/Evaluator.cpp b/paddle/gserver/evaluators/Evaluator.cpp index 70f2da45ea..1c20225983 100644 --- a/paddle/gserver/evaluators/Evaluator.cpp +++ b/paddle/gserver/evaluators/Evaluator.cpp @@ -83,7 +83,7 @@ public: errorMat->zeroMem(); if (label != nullptr) { - errorMat->classificationError(output, label); // top-1 error + errorMat->classificationError(*output, *label); // top-1 error size_t height = output->getHeight(); size_t width = 5; // config_.num_results(); -- GitLab