Skip to content

Commit 48e1b97

Browse files
committed
- Coding style fixes
test=develop
1 parent cf40dae commit 48e1b97

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

paddle/fluid/operators/math/blas_impl.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,23 +487,21 @@ void Blas<platform::CPUDeviceContext>::SCAL(int n, const T a, T *x) const {
487487
#endif
488488
}
489489

490-
491490
template <>
492491
template <typename T>
493492
T Blas<platform::CPUDeviceContext>::ASUM(int n, T *x, int inc) const {
494493
auto sum = static_cast<T>(0.0);
495494
#ifdef PADDLE_WITH_MKLML
496495
sum = CBlas<T>::ASUM(n, x, inc);
497496
#else
498-
//TODO(jczaja): check if openblas does provide cblas_sasum/cblas_dasum
497+
// TODO(jczaja): check if openblas does provide cblas_sasum/cblas_dasum
499498
for (int c = 0; c < n; ++c) {
500499
sum += x[c];
501500
}
502501
#endif
503502
return sum;
504503
}
505504

506-
507505
template <>
508506
template <typename T>
509507
void Blas<platform::CPUDeviceContext>::GEMV(bool trans_a, int M, int N, T alpha,

0 commit comments

Comments
 (0)