#include <Activations.hpp>
|
| Hardtanh (const float &low=-1.f, const float &high=1.f) |
|
std::vector< tensor > | forward (const std::vector< tensor > &input) |
| Forward function for this layer. More...
|
|
std::vector< tensor > | operator() (const std::vector< tensor > &input) |
| Forward function for this layer. More...
|
|
◆ Hardtanh()
pytorch::Hardtanh::Hardtanh |
( |
const float & |
low = -1.f , |
|
|
const float & |
high = 1.f |
|
) |
| |
|
inlineexplicit |
◆ forward()
std::vector<tensor> pytorch::Hardtanh::forward |
( |
const std::vector< tensor > & |
input | ) |
|
|
inlinevirtual |
Forward function for this layer.
- Parameters
-
input | The input to this layer |
- Returns
- The output of this layer
Implements pytorch::Layer.
◆ operator()()
std::vector<tensor> pytorch::Hardtanh::operator() |
( |
const std::vector< tensor > & |
input | ) |
|
|
inlinevirtual |
Forward function for this layer.
- Parameters
-
input | The input to this layer |
- Returns
- The output of this layer
Implements pytorch::Layer.
◆ high
const float pytorch::Hardtanh::high |
|
private |
◆ low
const float pytorch::Hardtanh::low |
|
private |
The documentation for this class was generated from the following file: