MLask 1.0.0
A custom c++ deep learning library
Loading...
Searching...
No Matches
Sigmoid.hpp
Go to the documentation of this file.
1#pragma once
3
4namespace mlask{
5
8 vectorIn input_;
9 float_t activate(float_t input)override;
10 float_t derived(float_t input)override;
11public:
14 Sigmoid(std::size_t in = 0);
15
21 bool tryConvertToONNX(onnx::GraphProto* graph, std::string input, std::string output) const override;
22 std::string str() const override{ return "Sigmoid"; }
23};
24
25}
base class for Activation Functions, meant for simplicity in definition.
Definition ActivationFunction.hpp:8
class reprsenting Sigmoid activation function
Definition Sigmoid.hpp:7
std::string str() const override
Returns a string representation of the layer.
Definition Sigmoid.hpp:22
bool tryConvertToONNX(onnx::GraphProto *graph, std::string input, std::string output) const override
Try to convert the layer to ONNX format.
Definition Sigmoid.cpp:18
Definition LeakyRelu.hpp:4
float float_t
Definition types.hpp:12
Eigen::Matrix< float_t, Eigen::Dynamic, 1 > vectorIn
Definition types.hpp:16