Apollo
6.0
Open source self driving car software
|
Activation is an activation network layer. Activation layer output is y = f(x), where x is the input, y the output and f the activation function. More...
#include <net_layer.h>
Public Member Functions | |
bool | Load (const apollo::prediction::LayerParameter &layer_pb) override |
Load the parameter from a pb message. More... | |
bool | Load (const apollo::prediction::ActivationParameter &activation_pb) |
Load the parameter from a pb message. More... | |
void | Run (const std::vector< Eigen::MatrixXf > &inputs, Eigen::MatrixXf *output) override |
Compute the layer output from inputs. More... | |
![]() | |
Layer ()=default | |
Constructor. More... | |
virtual | ~Layer ()=default |
Destructor. More... | |
virtual void | ResetState () |
Reset the internal state of a layer such as LSTM, GRU. More... | |
virtual void | SetState (const std::vector< Eigen::MatrixXf > &states) |
Set the internal state of a layer. More... | |
virtual void | State (std::vector< Eigen::MatrixXf > *states) const |
Access to the internal state of a layer. More... | |
std::string | Name () const |
Name of a layer. More... | |
int | OrderNumber () const |
Order number of a layer in a network. More... | |
Activation is an activation network layer. Activation layer output is y = f(x), where x is the input, y the output and f the activation function.
Parameter f can be loaded from pb message
|
overridevirtual |
Load the parameter from a pb message.
A | pb message contains the parameters |
Reimplemented from apollo::prediction::network::Layer.
bool apollo::prediction::network::Activation::Load | ( | const apollo::prediction::ActivationParameter & | activation_pb | ) |
Load the parameter from a pb message.
A | pb message contains the parameters |
|
overridevirtual |
Compute the layer output from inputs.
Inputs | to a network layer |
Output | of a network layer will be returned |
Implements apollo::prediction::network::Layer.