File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
paddle/fluid/operators/math Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ if (NOT WIN32) # windows do not support avx functions yet.
46
46
math_library (gru_compute DEPS activation_functions math_function )
47
47
math_library (lstm_compute DEPS activation_functions )
48
48
# TODO(TJ): ugly workaround, clean me
49
- cc_library (cpu_lstm_compute SRCS cpu_lstm_compute.cc DEPS activation_functions cblas )
49
+ cc_library (cpu_lstm_compute SRCS cpu_lstm_compute.cc DEPS activation_functions cblas cpu_info )
50
50
endif (NOT WIN32 )
51
51
52
52
cc_library (blas SRCS blas.cc DEPS cblas framework_proto device_context )
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ limitations under the License. */
17
17
#include < functional>
18
18
#include < string>
19
19
#include " paddle/fluid/platform/cpu_info.h"
20
+ #include " paddle/fluid/platform/enforce.h"
20
21
#ifdef __AVX__
21
22
#include < immintrin.h>
22
23
#endif
@@ -476,7 +477,7 @@ class VecActivations {
476
477
} else if (type == " identity" || type == " " ) {
477
478
return vec_identity<T, isa>;
478
479
}
479
- LOG (FATAL) << " Not support type: " << type;
480
+ PADDLE_THROW ( " Not support type: %s " , type) ;
480
481
}
481
482
};
482
483
You can’t perform that action at this time.
0 commit comments