Apollo  6.0
Open source self driving car software
Public Member Functions | Protected Attributes | List of all members
apollo::planning::ModelInference Class Referenceabstract

#include <model_inference.h>

Inheritance diagram for apollo::planning::ModelInference:
Inheritance graph
Collaboration diagram for apollo::planning::ModelInference:
Collaboration graph

Public Member Functions

 ModelInference (const LearningModelInferenceTaskConfig &config)
 Constructor. More...
 
virtual ~ModelInference ()=default
 Destructor. More...
 
virtual std::string GetName ()=0
 Get the name of model inference. More...
 
virtual bool LoadModel ()=0
 load a learned model More...
 
virtual bool DoInference (LearningDataFrame *learning_data_frame)=0
 inference a learned model More...
 

Protected Attributes

LearningModelInferenceTaskConfig config_
 

Constructor & Destructor Documentation

◆ ModelInference()

apollo::planning::ModelInference::ModelInference ( const LearningModelInferenceTaskConfig &  config)
inlineexplicit

Constructor.

◆ ~ModelInference()

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

Destructor.

Member Function Documentation

◆ DoInference()

virtual bool apollo::planning::ModelInference::DoInference ( LearningDataFrame *  learning_data_frame)
pure virtual

inference a learned model

Implemented in apollo::planning::TrajectoryImitationLibtorchInference.

◆ GetName()

virtual std::string apollo::planning::ModelInference::GetName ( )
pure virtual

Get the name of model inference.

Implemented in apollo::planning::TrajectoryImitationLibtorchInference.

◆ LoadModel()

virtual bool apollo::planning::ModelInference::LoadModel ( )
pure virtual

load a learned model

Implemented in apollo::planning::TrajectoryImitationLibtorchInference.

Member Data Documentation

◆ config_

LearningModelInferenceTaskConfig apollo::planning::ModelInference::config_
protected

The documentation for this class was generated from the following file: