|
MLask 1.0.0
A custom c++ deep learning library
|
class reprsenting Hyperbolic Tangent activation function More...
#include <Tanh.hpp>


Public Member Functions | |
| Tanh (std::size_t in=0) | |
| Construct a new Tanh 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 reprsenting Hyperbolic Tangent activation function
| mlask::Tanh::Tanh | ( | std::size_t | in = 0 | ) |
Construct a new Tanh object.
| 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.