Apollo 11.0
自动驾驶开放平台
apollo::planning::AutotuningMLPModel类 参考

#include <autotuning_mlp_net_model.h>

类 apollo::planning::AutotuningMLPModel 继承关系图:
apollo::planning::AutotuningMLPModel 的协作图:

Public 成员函数

 AutotuningMLPModel ()=default
 
virtual ~AutotuningMLPModel ()=default
 
void Run (const std::vector< Eigen::MatrixXf > &inputs, Eigen::MatrixXf *output) const override
 Compute the model output from inputs according to a defined layers' flow
 
- Public 成员函数 继承自 apollo::prediction::network::NetModel
 NetModel ()=default
 Constructor
 
virtual ~NetModel ()=default
 Destructor
 
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 属性 继承自 apollo::prediction::network::NetModel
std::vector< std::unique_ptr< Layer > > layers_
 
NetParameter net_parameter_
 
bool ok_ = false
 

详细描述

在文件 autotuning_mlp_net_model.h 第 27 行定义.

构造及析构函数说明

◆ AutotuningMLPModel()

apollo::planning::AutotuningMLPModel::AutotuningMLPModel ( )
default

◆ ~AutotuningMLPModel()

virtual apollo::planning::AutotuningMLPModel::~AutotuningMLPModel ( )
virtualdefault

成员函数说明

◆ Run()

void apollo::planning::AutotuningMLPModel::Run ( const std::vector< Eigen::MatrixXf > &  inputs,
Eigen::MatrixXf *  output 
) const
overridevirtual

Compute the model output from inputs according to a defined layers' flow

参数
Inputsto the network
Outputof the network will be returned

实现了 apollo::prediction::network::NetModel.

在文件 autotuning_mlp_net_model.cc 第 22 行定义.

23 {
24 Eigen::MatrixXf inp = inputs[0];
25 Eigen::MatrixXf temp;
26 for (size_t i = 0; i < layers_.size(); ++i) {
27 layers_[i]->Run({inp}, &temp);
28 inp = temp;
29 }
30 *output = temp;
31}
std::vector< std::unique_ptr< Layer > > layers_
Definition net_model.h:110

该类的文档由以下文件生成: