Apollo
6.0
Open source self driving car software
|
For a step-by-step description of the algorithm, see this tutorial. More...
#include <net_layer.h>
Public Member Functions | |
bool | Load (const apollo::prediction::LayerParameter &layer_pb) override |
Load the layer 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... | |
void | ResetState () override |
Reset the internal state and memory cell state as zero-matrix. More... | |
void | SetState (const std::vector< Eigen::MatrixXf > &states) override |
Set the internal state and memory cell state. More... | |
void | State (std::vector< Eigen::MatrixXf > *states) const override |
Access to the internal state and memory cell state. More... | |
![]() | |
Layer ()=default | |
Constructor. More... | |
virtual | ~Layer ()=default |
Destructor. More... | |
std::string | Name () const |
Name of a layer. More... | |
int | OrderNumber () const |
Order number of a layer in a network. More... | |
For a step-by-step description of the algorithm, see this tutorial.
Long-Short Term Memory unit - Hochreiter 1997.
|
overridevirtual |
Load the layer parameter from a pb message.
A | pb message contains the parameters |
Reimplemented from apollo::prediction::network::Layer.
|
overridevirtual |
Reset the internal state and memory cell state as zero-matrix.
Reimplemented from apollo::prediction::network::Layer.
|
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.
|
overridevirtual |
Set the internal state and memory cell state.
A | vector of Eigen::MatrixXf |
Reimplemented from apollo::prediction::network::Layer.
|
overridevirtual |
Access to the internal state and memory cell state.
Reimplemented from apollo::prediction::network::Layer.