|
MLask 1.0.0
A custom c++ deep learning library
|
class reprsenting Soft Max activation function, since the definition is to complex for activation function it derives from Layer More...
#include <SoftMax.hpp>


Public Member Functions | |
| SoftMax (std::size_t in=0) | |
| Construct a new SoftMax object. | |
| vectorOut | forward (vectorIn) override |
| softmax definition | |
| vectorIn | backward (vectorOut) override |
| derived version of softmax | |
| void | fit (float_t learning_rate) override |
| This does nothing, since softmax doesnt change. | |
| 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 reprsenting Soft Max activation function, since the definition is to complex for activation function it derives from Layer
| mlask::SoftMax::SoftMax | ( | std::size_t | in = 0 | ) |
Construct a new SoftMax object.
| in | Number of inputs to the layer, default is 0, meaning it can be any size |
derived version of softmax
Implements mlask::Layer.
This does nothing, since softmax doesnt change.
Implements mlask::Layer.
softmax definition
Implements mlask::Layer.
|
inlineoverridevirtual |
Returns a string representation of the layer.
Reimplemented from mlask::Layer.
|
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.