From d757c1cd02736def384618c1281919c37f1c5628 Mon Sep 17 00:00:00 2001 From: dangqingqing Date: Thu, 14 Sep 2017 17:24:46 +0800 Subject: [PATCH] Fix accuracy_op. --- paddle/operators/accuracy_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/operators/accuracy_op.cc b/paddle/operators/accuracy_op.cc index 9ca04d40287..4a6c6381b03 100644 --- a/paddle/operators/accuracy_op.cc +++ b/paddle/operators/accuracy_op.cc @@ -34,7 +34,7 @@ class AccuracyOp : public framework::OperatorWithKernel { PADDLE_ENFORCE_EQ(inference->dims()[0], label->dims()[0], "inference size must be the same as label size"); - ctx.Output("Accuracy")->Resize({1}); + ctx.Output("Accuracy")->Resize({1}); } }; -- GitLab