15 #ifdef ETL_EGBLAS_MODE 17 #include "etl/impl/cublas/cuda.hpp" 28 #ifdef EGBLAS_HAS_SRELU_DER_OUT 29 static constexpr
bool has_srelu_der_out =
true;
31 static constexpr
bool has_srelu_der_out =
false;
44 [[maybe_unused]]
float alpha,
45 [[maybe_unused]]
float* A,
46 [[maybe_unused]]
size_t lda,
47 [[maybe_unused]]
float* B,
48 [[maybe_unused]]
size_t ldb) {
49 #ifdef EGBLAS_HAS_SRELU_DER_OUT 51 egblas_srelu_der_out(n, alpha, A, lda, B, ldb);
53 cpp_unreachable(
"Invalid call to egblas::relu_der_out");
60 #ifdef EGBLAS_HAS_DRELU_DER_OUT 61 static constexpr
bool has_drelu_der_out =
true;
63 static constexpr
bool has_drelu_der_out =
false;
76 [[maybe_unused]]
double alpha,
77 [[maybe_unused]]
double* A,
78 [[maybe_unused]]
size_t lda,
79 [[maybe_unused]]
double* B,
80 [[maybe_unused]]
size_t ldb) {
81 #ifdef EGBLAS_HAS_DRELU_DER_OUT 83 egblas_drelu_der_out(n, alpha, A, lda, B, ldb);
85 cpp_unreachable(
"Invalid call to egblas::relu_der_out");
void inc_counter([[maybe_unused]] const char *name)
Increase the given counter.
Definition: counters.hpp:25
void relu_der_out([[maybe_unused]] size_t n, [[maybe_unused]] float alpha, [[maybe_unused]] float *A, [[maybe_unused]] size_t lda, [[maybe_unused]] float *B, [[maybe_unused]] size_t ldb)
Wrappers for single-precision egblas relu_der_out operation.
Definition: relu_der_out.hpp:43