From 7939705384751b7fbbcf6d9c334363b8f7fbd763 Mon Sep 17 00:00:00 2001 From: Liu Yiqun Date: Fri, 1 Sep 2017 18:34:18 +0800 Subject: [PATCH] Add the missing return statement. --- paddle/math/MathFunctions.h | 1 + 1 file changed, 1 insertion(+) diff --git a/paddle/math/MathFunctions.h b/paddle/math/MathFunctions.h index 9297ae78c27..e8ea6e37ac5 100644 --- a/paddle/math/MathFunctions.h +++ b/paddle/math/MathFunctions.h @@ -106,6 +106,7 @@ T dotProduct(const int n, const T* x, const T* y) { for (int i = 0; i < n; i++) { result += x[i] * y[i]; } + return result; } template -- GitLab