|
Apollo 11.0
自动驾驶开放平台
|
#include <onnx_multi_batch_infer.h>
Public 成员函数 | |
| MultiBatchInference () | |
| virtual | ~MultiBatchInference () |
| bool | OnnxToTRTModel (const std::string &model_file) |
| Convert ONNX to TensorRT model | |
| void | SetOnnxOptimizationProfile (nvinfer1::IOptimizationProfile *profile, const BlobMap &input_shapes) |
| void | inference () |
| bool | LoadCache (const std::string &path) |
| bool | Init (const std::map< std::string, std::vector< int > > &shapes) override |
| void | Infer () override |
| void | init_blob (std::vector< std::string > *names) |
| base::BlobPtr< float > | get_blob (const std::string &name) override |
| void | FileInit () |
| void | SetStream (cudaStream_t stream) |
Public 成员函数 继承自 apollo::perception::inference::Inference | |
| Inference ()=default | |
| virtual | ~Inference ()=default |
| 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) |
额外继承的成员函数 | |
Protected 属性 继承自 apollo::perception::inference::Inference | |
| int | max_batch_size_ = 1 |
| int | gpu_id_ = 0 |
| std::string | proto_file_ = "" |
| std::vector< std::string > | net_output_names_ |
| std::vector< std::string > | net_input_names_ |
在文件 onnx_multi_batch_infer.h 第 41 行定义.
|
inline |
在文件 onnx_multi_batch_infer.h 第 43 行定义.
|
virtual |
在文件 onnx_multi_batch_infer.cc 第 92 行定义.
| void apollo::perception::inference::MultiBatchInference::FileInit | ( | ) |
在文件 onnx_multi_batch_infer.cc 第 116 行定义.
|
overridevirtual |
实现了 apollo::perception::inference::Inference.
在文件 onnx_multi_batch_infer.cc 第 84 行定义.
|
overridevirtual |
实现了 apollo::perception::inference::Inference.
在文件 onnx_multi_batch_infer.cc 第 295 行定义.
| void apollo::perception::inference::MultiBatchInference::inference | ( | ) |
在文件 onnx_multi_batch_infer.cc 第 278 行定义.
|
overridevirtual |
实现了 apollo::perception::inference::Inference.
在文件 onnx_multi_batch_infer.cc 第 122 行定义.
| void apollo::perception::inference::MultiBatchInference::init_blob | ( | std::vector< std::string > * | names | ) |
在文件 onnx_multi_batch_infer.cc 第 282 行定义.
| bool apollo::perception::inference::MultiBatchInference::LoadCache | ( | const std::string & | path | ) |
在文件 onnx_multi_batch_infer.cc 第 107 行定义.
| bool apollo::perception::inference::MultiBatchInference::OnnxToTRTModel | ( | const std::string & | model_file | ) |
Convert ONNX to TensorRT model
| [in] | model_file | ONNX model file path |
Load ONNX model, and convert it to TensorRT model
在文件 onnx_multi_batch_infer.cc 第 207 行定义.
| void apollo::perception::inference::MultiBatchInference::SetOnnxOptimizationProfile | ( | nvinfer1::IOptimizationProfile * | profile, |
| const BlobMap & | input_shapes | ||
| ) |
在文件 onnx_multi_batch_infer.cc 第 165 行定义.
|
inlinevirtual |
重载 apollo::perception::inference::Inference .
在文件 onnx_multi_batch_infer.h 第 65 行定义.