Layer representing Relu activation function.
More...
#include <Relu.hpp>
Layer representing Relu activation function.
◆ Relu()
| mlask::Relu::Relu |
( |
std::size_t |
in = 0 | ) |
|
Construct a new Relu object.
- Parameters
-
| in | Number of inputs to the layer, default is 0, meaning it can be any size |
◆ str()
| std::string mlask::Relu::str |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ tryConvertToONNX()
| bool mlask::Relu::tryConvertToONNX |
( |
onnx::GraphProto * |
graph, |
|
|
std::string |
input, |
|
|
std::string |
output |
|
) |
| const |
|
overridevirtual |
Try to convert the layer to ONNX format.
- Parameters
-
| graph | ONNX graph to which the layer should be added |
| input | Name of the input tensor |
| output | Name of the output tensor |
- Returns
- True if the conversion was successful, false otherwise
Reimplemented from mlask::Layer.
The documentation for this class was generated from the following files: