15 #ifdef ETL_EGBLAS_MODE 17 #include "etl/impl/cublas/cuda.hpp" 25 #ifdef EGBLAS_HAS_SSIGMOID 26 static constexpr
bool has_ssigmoid =
true;
28 static constexpr
bool has_ssigmoid =
false;
40 inline void sigmoid([[maybe_unused]]
size_t n,
41 [[maybe_unused]]
float alpha,
42 [[maybe_unused]]
float* A,
43 [[maybe_unused]]
size_t lda,
44 [[maybe_unused]]
float* B,
45 [[maybe_unused]]
size_t ldb) {
46 #ifdef EGBLAS_HAS_SSIGMOID 48 egblas_ssigmoid(n, alpha, A, lda, B, ldb);
50 cpp_unreachable(
"Invalid call to egblas::sigmoid");
54 #ifdef EGBLAS_HAS_DSIGMOID 55 static constexpr
bool has_dsigmoid =
true;
57 static constexpr
bool has_dsigmoid =
false;
69 inline void sigmoid([[maybe_unused]]
size_t n,
70 [[maybe_unused]]
double alpha,
71 [[maybe_unused]]
double* A,
72 [[maybe_unused]]
size_t lda,
73 [[maybe_unused]]
double* B,
74 [[maybe_unused]]
size_t ldb) {
75 #ifdef EGBLAS_HAS_DSIGMOID 77 egblas_dsigmoid(n, alpha, A, lda, B, ldb);
79 cpp_unreachable(
"Invalid call to egblas::sigmoid");
auto sigmoid(const E &value) -> detail::unary_helper< E, sigmoid_unary_op >
Return the logistic sigmoid of the given ETL expression.
Definition: function_expression_builder.hpp:197
void inc_counter([[maybe_unused]] const char *name)
Increase the given counter.
Definition: counters.hpp:25