The GELU function, defined by. More...
Static Public Member Functions | |
static double | Deriv (const double y) |
Computes the first derivative of the GELU function. More... | |
template < typename InputVecType , typename OutputVecType > | |
static void | Deriv (const InputVecType &y, OutputVecType &x) |
Computes the first derivatives of the GELU function. More... | |
static double | Fn (const double x) |
Computes the GELU function. More... | |
template < typename InputVecType , typename OutputVecType > | |
static void | Fn (const InputVecType &x, OutputVecType &y) |
Computes the GELU function. More... | |
|
inlinestatic |
Computes the first derivative of the GELU function.
y | Input data. |
Definition at line 65 of file gelu_function.hpp.
|
inlinestatic |
Computes the first derivatives of the GELU function.
y | Input data. |
x | The resulting derivatives. |
Definition at line 80 of file gelu_function.hpp.
|
inlinestatic |
Computes the GELU function.
x | Input data. |
Definition at line 40 of file gelu_function.hpp.
References M_PI.
|
inlinestatic |
Computes the GELU function.
x | Input data. |
y | The resulting output activation. |
Definition at line 53 of file gelu_function.hpp.
References M_PI.