|
Apollo 11.0
自动驾驶开放平台
|
NetModel is a base class for specific network model It contains a pure virtual function Run which must be implemented in derived class 更多...
#include <net_model.h>
Public 成员函数 | |
| NetModel ()=default | |
| Constructor | |
| virtual | ~NetModel ()=default |
| Destructor | |
| virtual void | Run (const std::vector< Eigen::MatrixXf > &inputs, Eigen::MatrixXf *output) const =0 |
| Compute the model output from inputs | |
| virtual void | SetState (const std::vector< Eigen::MatrixXf > &states) |
| Set the internal state of a network model | |
| virtual void | State (std::vector< Eigen::MatrixXf > *states) const |
| Access to the internal state of a network model | |
| virtual void | ResetState () const |
| Set the internal state of a model | |
| bool | LoadModel (const NetParameter &net_parameter) |
| Load network parameters from a protobuf message | |
| std::string | PerformanceString () const |
| Shows the performance information of a network | |
| const std::string & | Name () const |
| Name of a network model | |
| int | Id () const |
| Id of a network model | |
| bool | IsOk () const |
| Indicate the state of a network model | |
Protected 属性 | |
| std::vector< std::unique_ptr< Layer > > | layers_ |
| NetParameter | net_parameter_ |
| bool | ok_ = false |
NetModel is a base class for specific network model It contains a pure virtual function Run which must be implemented in derived class
在文件 net_model.h 第 40 行定义.
|
default |
Constructor
|
virtualdefault |
Destructor
| int apollo::prediction::network::NetModel::Id | ( | ) | const |
Id of a network model
在文件 net_model.cc 第 97 行定义.
| bool apollo::prediction::network::NetModel::IsOk | ( | ) | const |
Indicate the state of a network model
在文件 net_model.cc 第 99 行定义.
| bool apollo::prediction::network::NetModel::LoadModel | ( | const NetParameter & | net_parameter | ) |
Load network parameters from a protobuf message
| NetParameter | is a protobuf message |
在文件 net_model.cc 第 27 行定义.
| const std::string & apollo::prediction::network::NetModel::Name | ( | ) | const |
| std::string apollo::prediction::network::NetModel::PerformanceString | ( | ) | const |
Shows the performance information of a network
在文件 net_model.cc 第 73 行定义.
|
inlinevirtual |
Set the internal state of a model
| A | specified internal state in a vector of Eigen::MatrixXf |
被 apollo::prediction::network::RnnModel 重载.
在文件 net_model.h 第 76 行定义.
|
pure virtual |
Compute the model output from inputs
| Inputs | to a network |
| Output | of a network will be returned |
在 apollo::planning::AutotuningMLPModel , 以及 apollo::prediction::network::RnnModel 内被实现.
|
inlinevirtual |
Set the internal state of a network model
| A | specified internal state in a vector of Eigen::MatrixXf |
被 apollo::prediction::network::RnnModel 重载.
在文件 net_model.h 第 64 行定义.
|
inlinevirtual |
Access to the internal state of a network model
被 apollo::prediction::network::RnnModel 重载.
在文件 net_model.h 第 70 行定义.
|
protected |
在文件 net_model.h 第 110 行定义.
|
protected |
在文件 net_model.h 第 111 行定义.
|
protected |
在文件 net_model.h 第 112 行定义.