diff --git a/paddle/fluid/operators/math/blas_impl.h b/paddle/fluid/operators/math/blas_impl.h index 106d4551dd0f615955bc9c9262c49a80ab6203e8..c84087bb1e4849b27d53e05f046c93f631150f6f 100644 --- a/paddle/fluid/operators/math/blas_impl.h +++ b/paddle/fluid/operators/math/blas_impl.h @@ -487,7 +487,6 @@ void Blas::SCAL(int n, const T a, T *x) const { #endif } - template <> template T Blas::ASUM(int n, T *x, int inc) const { @@ -495,7 +494,7 @@ T Blas::ASUM(int n, T *x, int inc) const { #ifdef PADDLE_WITH_MKLML sum = CBlas::ASUM(n, x, inc); #else - //TODO(jczaja): check if openblas does provide cblas_sasum/cblas_dasum + // TODO(jczaja): check if openblas does provide cblas_sasum/cblas_dasum for (int c = 0; c < n; ++c) { sum += x[c]; } @@ -503,7 +502,6 @@ T Blas::ASUM(int n, T *x, int inc) const { return sum; } - template <> template void Blas::GEMV(bool trans_a, int M, int N, T alpha,