Skip to content

Commit cf40dae

Browse files
committed
- Building fix to softmax for inference
1 parent 8bfa1fa commit cf40dae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/operators/math/blas_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ template <typename T>
493493
T Blas<platform::CPUDeviceContext>::ASUM(int n, T *x, int inc) const {
494494
auto sum = static_cast<T>(0.0);
495495
#ifdef PADDLE_WITH_MKLML
496-
sum = Blas<T>::ASUM(n, x, inc);
496+
sum = CBlas<T>::ASUM(n, x, inc);
497497
#else
498498
//TODO(jczaja): check if openblas does provide cblas_sasum/cblas_dasum
499499
for (int c = 0; c < n; ++c) {

0 commit comments

Comments
 (0)