|
MLask 1.0.0
A custom c++ deep learning library
|
Class representing Leaky Relu activation function. More...
#include <LeakyRelu.hpp>


Public Member Functions | |
| LeakyRelu (float_t a, std::size_t in=0) | |
| Construct a new LeakyRelu object. | |
| bool | tryConvertToONNX (onnx::GraphProto *graph, std::string input, std::string output) const override |
| Try to convert the layer to ONNX format. | |
| std::string | str () const override |
| Returns a string representation of the layer. | |
Class representing Leaky Relu activation function.
| mlask::LeakyRelu::LeakyRelu | ( | float_t | a, |
| std::size_t | in = 0 |
||
| ) |
Construct a new LeakyRelu object.
| a | an a for leaky relu definition |
| in | Number of inputs to the layer, default is 0, meaning it can be any size |
|
inlineoverridevirtual |
Returns a string representation of the layer.
Reimplemented from mlask::ActivationFunction.
|
overridevirtual |
Try to convert the layer to ONNX format.
| graph | ONNX graph to which the layer should be added |
| input | Name of the input tensor |
| output | Name of the output tensor |
Reimplemented from mlask::Layer.