#include <inference.h>
|
| | Inference ()=default |
| |
| virtual | ~Inference ()=default |
| |
| virtual bool | Init (const std::map< std::string, std::vector< int > > &shapes)=0 |
| |
| virtual void | Infer ()=0 |
| |
| virtual base::BlobPtr< float > | get_blob (const std::string &name)=0 |
| |
| virtual void | SetStream (cudaStream_t stream) |
| |
| void | set_max_batch_size (const int &batch_size) |
| |
| void | set_gpu_id (const int &gpu_id) |
| |
| void | set_model_info (const std::string &proto_file, const std::vector< std::string > &net_input_names, const std::vector< std::string > &net_output_names) |
| |
◆ Inference()
| apollo::perception::inference::Inference::Inference |
( |
| ) |
|
|
default |
◆ ~Inference()
| virtual apollo::perception::inference::Inference::~Inference |
( |
| ) |
|
|
virtualdefault |
◆ get_blob()
| virtual base::BlobPtr< float > apollo::perception::inference::Inference::get_blob |
( |
const std::string & |
name | ) |
|
|
pure virtual |
◆ Infer()
| virtual void apollo::perception::inference::Inference::Infer |
( |
| ) |
|
|
pure virtual |
◆ Init()
| virtual bool apollo::perception::inference::Inference::Init |
( |
const std::map< std::string, std::vector< int > > & |
shapes | ) |
|
|
pure virtual |
◆ set_gpu_id()
| void apollo::perception::inference::Inference::set_gpu_id |
( |
const int & |
gpu_id | ) |
|
◆ set_max_batch_size()
| void apollo::perception::inference::Inference::set_max_batch_size |
( |
const int & |
batch_size | ) |
|
◆ set_model_info()
| void apollo::perception::inference::Inference::set_model_info |
( |
const std::string & |
proto_file, |
|
|
const std::vector< std::string > & |
net_input_names, |
|
|
const std::vector< std::string > & |
net_output_names |
|
) |
| |
在文件 inference.cc 第 29 行定义.
32 {
36 }
std::vector< std::string > net_input_names_
std::vector< std::string > net_output_names_
◆ SetStream()
| virtual void apollo::perception::inference::Inference::SetStream |
( |
cudaStream_t |
stream | ) |
|
|
inlinevirtual |
◆ gpu_id_
| int apollo::perception::inference::Inference::gpu_id_ = 0 |
|
protected |
◆ max_batch_size_
| int apollo::perception::inference::Inference::max_batch_size_ = 1 |
|
protected |
◆ net_input_names_
| std::vector<std::string> apollo::perception::inference::Inference::net_input_names_ |
|
protected |
◆ net_output_names_
| std::vector<std::string> apollo::perception::inference::Inference::net_output_names_ |
|
protected |
◆ proto_file_
| std::string apollo::perception::inference::Inference::proto_file_ = "" |
|
protected |
该类的文档由以下文件生成: