We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60d6348 commit 4db43c6Copy full SHA for 4db43c6
paddle/fluid/operators/math/blas_impl.h
@@ -24,17 +24,23 @@ struct CBlas;
24
25
template <>
26
struct CBlas<float> {
27
- static constexpr auto GEMM = cblas_sgemm;
+ template <typename... ARGS>
28
+ static void GEMM(ARGS... args) {
29
+ cblas_sgemm(args...);
30
+ }
31
};
32
33
34
struct CBlas<double> {
- static constexpr auto GEMM = cblas_dgemm;
35
36
37
+ cblas_dgemm(args...);
38
39
40
41
42
struct CBlas<platform::float16> {
- void GEMM(...) { PADDLE_THROW("float16 GEMM not supported on CPU"); }
43
+ static void GEMM(...) { PADDLE_THROW("float16 GEMM not supported on CPU"); }
44
45
46
0 commit comments