#include <torch_det.h>
|
| TorchDet (const std::string &net_file, const std::string &model_file, const std::vector< std::string > &outputs) |
|
| TorchDet (const std::string &net_file, const std::string &model_file, const std::vector< std::string > &outputs, const std::vector< std::string > &inputs) |
|
virtual | ~TorchDet () |
|
bool | Init (const std::map< std::string, std::vector< int >> &shapes) override |
|
void | Infer () override |
|
BlobPtr | get_blob (const std::string &name) override |
|
| Inference ()=default |
|
virtual | ~Inference ()=default |
|
void | set_max_batch_size (const int &batch_size) |
|
void | set_gpu_id (const int &gpu_id) |
|
|
bool | shape (const std::string &name, std::vector< int > *res) |
|
◆ TorchDet() [1/2]
apollo::perception::inference::TorchDet::TorchDet |
( |
const std::string & |
net_file, |
|
|
const std::string & |
model_file, |
|
|
const std::vector< std::string > & |
outputs |
|
) |
| |
◆ TorchDet() [2/2]
apollo::perception::inference::TorchDet::TorchDet |
( |
const std::string & |
net_file, |
|
|
const std::string & |
model_file, |
|
|
const std::vector< std::string > & |
outputs, |
|
|
const std::vector< std::string > & |
inputs |
|
) |
| |
◆ ~TorchDet()
virtual apollo::perception::inference::TorchDet::~TorchDet |
( |
| ) |
|
|
inlinevirtual |
◆ get_blob()
BlobPtr apollo::perception::inference::TorchDet::get_blob |
( |
const std::string & |
name | ) |
|
|
overridevirtual |
◆ Infer()
void apollo::perception::inference::TorchDet::Infer |
( |
| ) |
|
|
overridevirtual |
◆ Init()
bool apollo::perception::inference::TorchDet::Init |
( |
const std::map< std::string, std::vector< int >> & |
shapes | ) |
|
|
overridevirtual |
◆ shape()
bool apollo::perception::inference::TorchDet::shape |
( |
const std::string & |
name, |
|
|
std::vector< int > * |
res |
|
) |
| |
|
protected |
◆ net_
torch::jit::script::Module apollo::perception::inference::TorchDet::net_ |
|
protected |
The documentation for this class was generated from the following file: