struct
SushiAI::NN::LeakyReLU
Applies x where x is positive and slope * x elsewhere, elementwise.
- Declared in
include/SushiAI/nn/leaky_relu.hpp
Public attributes
double slope = 0.01Holds the factor applied to negative inputs; must lie in (0, 1).
Static public member functions
static constexpr auto fields()Lists this layer's parameters, of which there are none.
Public member functions
Graph::ValueId forward(const Graph::GraphBuilder &builder, Graph::ValueId x) constTraces the activation over an input of any rank.
Returns
The result's id, shaped and laid out like x.
Shape output_shape(const Shape &input) constComputes the per-sample shape forward() produces.
Returns
The shape of input, which the activation keeps.

