|
Apollo 11.0
自动驾驶开放平台
|
Layer is a base class for specific network layers It contains a pure virtual function Run which must be implemented in derived class 更多...
#include <net_layer.h>
Public 成员函数 | |
| Layer ()=default | |
| Constructor | |
| virtual | ~Layer ()=default |
| Destructor | |
| virtual bool | Load (const apollo::prediction::LayerParameter &layer_pb) |
| Load layer parameters from a protobuf message | |
| virtual void | ResetState () |
| Reset the internal state of a layer such as LSTM, GRU | |
| virtual void | SetState (const std::vector< Eigen::MatrixXf > &states) |
| Set the internal state of a layer | |
| virtual void | State (std::vector< Eigen::MatrixXf > *states) const |
| Access to the internal state of a layer | |
| virtual void | Run (const std::vector< Eigen::MatrixXf > &inputs, Eigen::MatrixXf *output)=0 |
| Compute the layer output from inputs | |
| std::string | Name () const |
| Name of a layer | |
| int | OrderNumber () const |
| Order number of a layer in a network | |
Layer is a base class for specific network layers It contains a pure virtual function Run which must be implemented in derived class
在文件 net_layer.h 第 38 行定义.
|
default |
Constructor
|
virtualdefault |
Destructor
|
virtual |
Load layer parameters from a protobuf message
| LayerParameter | is a protobuf message |
被 apollo::prediction::network::Dense, apollo::prediction::network::Conv1d, apollo::prediction::network::MaxPool1d, apollo::prediction::network::AvgPool1d, apollo::prediction::network::Activation, apollo::prediction::network::BatchNormalization, apollo::prediction::network::LSTM, apollo::prediction::network::Flatten, apollo::prediction::network::Input , 以及 apollo::prediction::network::Concatenate 重载.
在文件 net_layer.cc 第 32 行定义.
|
inline |
|
inline |
Order number of a layer in a network
在文件 net_layer.h 第 92 行定义.
|
inlinevirtual |
Reset the internal state of a layer such as LSTM, GRU
被 apollo::prediction::network::LSTM 重载.
在文件 net_layer.h 第 60 行定义.
|
pure virtual |
Compute the layer output from inputs
| Inputs | to a network layer |
| Output | of a network layer will be returned |
在 apollo::prediction::network::Dense, apollo::prediction::network::Conv1d, apollo::prediction::network::MaxPool1d, apollo::prediction::network::AvgPool1d, apollo::prediction::network::Activation, apollo::prediction::network::BatchNormalization, apollo::prediction::network::LSTM, apollo::prediction::network::Flatten, apollo::prediction::network::Input , 以及 apollo::prediction::network::Concatenate 内被实现.
|
inlinevirtual |
Set the internal state of a layer
| A | specified internal state in a vector of Eigen::MatrixXf |
被 apollo::prediction::network::LSTM 重载.
在文件 net_layer.h 第 66 行定义.
|
inlinevirtual |
Access to the internal state of a layer
被 apollo::prediction::network::LSTM 重载.
在文件 net_layer.h 第 72 行定义.