|
nndeploy C++ API
0.2.0
nndeploy C++ API
|
InferenceParam is the base class of all inference param. More...
#include <inference_param.h>
Public Member Functions | |
| virtual base::Status | deserialize (rapidjson::Value &json) |
| virtual base::Status | get (const std::string &key, base::Any &any) |
| 获取参数 More... | |
| const std::vector< std::string > & | getCachePath () const |
| base::DeviceType | getDeviceType () const |
| base::EncryptType | getEncryptType () const |
| int | getGpuTuneKernel () const |
| base::InferenceType | getInferenceType () const |
| const std::vector< std::string > & | getInputName () const |
| int | getInputNum () const |
| const std::vector< std::vector< int > > & | getInputShape () const |
| bool | getIsDynamicShape () const |
| bool | getIsPath () const |
| const std::vector< std::string > & | getLibraryPath () const |
| const std::string & | getLicense () const |
| const base::ShapeMap & | getMaxShape () const |
| const base::ShapeMap & | getMinShape () const |
| base::ModelType | getModelType () const |
| const std::vector< std::string > & | getModelValue () const |
| int | getNumThread () const |
| const base::ShapeMap & | getOptShape () const |
| const std::vector< std::string > & | getOutputName () const |
| int | getOutputNum () const |
| base::PowerType | getPowerType () const |
| base::PrecisionType | getPrecisionType () const |
| base::ShareMemoryType | getShareMemoryMode () const |
| InferenceParam () | |
| InferenceParam (base::InferenceType type) | |
| InferenceParam (const InferenceParam ¶m)=default | |
| InferenceParam & | operator= (const InferenceParam ¶m)=default |
| virtual base::Status | serialize (rapidjson::Value &json, rapidjson::Document::AllocatorType &allocator) |
| virtual base::Status | set (const std::string &key, base::Any &any) |
| 设置参数 More... | |
| void | setCachePath (const std::vector< std::string > &cache_path) |
| void | setDeviceType (base::DeviceType type) |
| void | setEncryptType (base::EncryptType type) |
| void | setGpuTuneKernel (int gpu_tune_kernel) |
| void | setInferenceType (base::InferenceType type) |
| void | setInputName (const std::string &input_name, int i=-1) |
| void | setInputName (const std::vector< std::string > &input_name) |
| void | setInputNum (int input_num) |
| void | setInputShape (const std::vector< int > &input_shape, int i=-1) |
| void | setInputShape (const std::vector< std::vector< int >> &input_shape) |
| void | setIsDynamicShape (bool is_dynamic_shape) |
| void | setIsPath (bool is_path) |
| void | setLibraryPath (const std::string &library_path, int i=-1) |
| void | setLibraryPath (const std::vector< std::string > &library_path) |
| void | setLicense (const std::string &license) |
| void | setMaxShape (const base::ShapeMap &max_shape) |
| void | setMinShape (const base::ShapeMap &min_shape) |
| void | setModelType (base::ModelType type) |
| void | setModelValue (const std::string &model_value, int i=-1) |
| void | setModelValue (const std::vector< std::string > &model_value) |
| void | setNumThread (int num_thread) |
| void | setOptShape (const base::ShapeMap &opt_shape) |
| void | setOutputName (const std::string &output_name, int i=-1) |
| void | setOutputName (const std::vector< std::string > &output_name) |
| void | setOutputNum (int output_num) |
| void | setPowerType (base::PowerType type) |
| void | setPrecisionType (base::PrecisionType type) |
| void | setShareMemoryMode (base::ShareMemoryType mode) |
| virtual | ~InferenceParam () |
Public Member Functions inherited from nndeploy::base::Param | |
| base::Status | addDropdownParam (const std::string &dropdown_param, const std::vector< std::string > &dropdown_values) |
| base::Status | addIoParam (const std::string &io_param) |
| base::Status | addRequiredParam (const std::string &required_param) |
| base::Status | addUiParam (const std::string &ui_param) |
| base::Status | clearDropdownParams () |
| base::Status | clearIoParams () |
| base::Status | clearRequiredParams () |
| base::Status | clearUiParams () |
| virtual base::Status | deserialize (const std::string &json_str) |
| std::map< std::string, std::vector< std::string > > | getDropdownParams () |
| std::vector< std::string > | getIoParams () |
| std::vector< std::string > | getRequiredParams () |
| std::vector< std::string > | getUiParams () |
| virtual base::Status | loadFile (const std::string &path) |
| Param () | |
| base::Status | removeDropdownParam (const std::string &dropdown_param) |
| base::Status | removeIoParam (const std::string &io_param) |
| base::Status | removeRequiredParam (const std::string &required_param) |
| base::Status | removeUiParam (const std::string &ui_param) |
| virtual base::Status | saveFile (const std::string &path) |
| virtual std::string | serialize () |
| base::Status | setDropdownParams (const std::map< std::string, std::vector< std::string >> &dropdown_params) |
| base::Status | setIoParams (const std::vector< std::string > &io_params) |
| base::Status | setRequiredParams (const std::vector< std::string > &required_params) |
| base::Status | setUiParams (const std::vector< std::string > &ui_params) |
| virtual | ~Param () |
InferenceParam is the base class of all inference param.
Definition at line 22 of file inference_param.h.
| nndeploy::inference::InferenceParam::InferenceParam | ( | ) |
| nndeploy::inference::InferenceParam::InferenceParam | ( | base::InferenceType | type | ) |
|
virtual |
|
default |
|
virtual |
Reimplemented from nndeploy::base::Param.
|
virtual |
| const std::vector<std::string>& nndeploy::inference::InferenceParam::getCachePath | ( | ) | const |
| base::DeviceType nndeploy::inference::InferenceParam::getDeviceType | ( | ) | const |
| base::EncryptType nndeploy::inference::InferenceParam::getEncryptType | ( | ) | const |
| int nndeploy::inference::InferenceParam::getGpuTuneKernel | ( | ) | const |
| base::InferenceType nndeploy::inference::InferenceParam::getInferenceType | ( | ) | const |
| const std::vector<std::string>& nndeploy::inference::InferenceParam::getInputName | ( | ) | const |
| int nndeploy::inference::InferenceParam::getInputNum | ( | ) | const |
| const std::vector<std::vector<int> >& nndeploy::inference::InferenceParam::getInputShape | ( | ) | const |
| bool nndeploy::inference::InferenceParam::getIsDynamicShape | ( | ) | const |
| bool nndeploy::inference::InferenceParam::getIsPath | ( | ) | const |
| const std::vector<std::string>& nndeploy::inference::InferenceParam::getLibraryPath | ( | ) | const |
| const std::string& nndeploy::inference::InferenceParam::getLicense | ( | ) | const |
| const base::ShapeMap& nndeploy::inference::InferenceParam::getMaxShape | ( | ) | const |
| const base::ShapeMap& nndeploy::inference::InferenceParam::getMinShape | ( | ) | const |
| base::ModelType nndeploy::inference::InferenceParam::getModelType | ( | ) | const |
| const std::vector<std::string>& nndeploy::inference::InferenceParam::getModelValue | ( | ) | const |
| int nndeploy::inference::InferenceParam::getNumThread | ( | ) | const |
| const base::ShapeMap& nndeploy::inference::InferenceParam::getOptShape | ( | ) | const |
| const std::vector<std::string>& nndeploy::inference::InferenceParam::getOutputName | ( | ) | const |
| int nndeploy::inference::InferenceParam::getOutputNum | ( | ) | const |
| base::PowerType nndeploy::inference::InferenceParam::getPowerType | ( | ) | const |
| base::PrecisionType nndeploy::inference::InferenceParam::getPrecisionType | ( | ) | const |
| base::ShareMemoryType nndeploy::inference::InferenceParam::getShareMemoryMode | ( | ) | const |
|
default |
|
virtual |
Reimplemented from nndeploy::base::Param.
|
virtual |
| void nndeploy::inference::InferenceParam::setCachePath | ( | const std::vector< std::string > & | cache_path | ) |
| void nndeploy::inference::InferenceParam::setDeviceType | ( | base::DeviceType | type | ) |
| void nndeploy::inference::InferenceParam::setEncryptType | ( | base::EncryptType | type | ) |
| void nndeploy::inference::InferenceParam::setGpuTuneKernel | ( | int | gpu_tune_kernel | ) |
| void nndeploy::inference::InferenceParam::setInferenceType | ( | base::InferenceType | type | ) |
| void nndeploy::inference::InferenceParam::setInputName | ( | const std::string & | input_name, |
| int | i = -1 |
||
| ) |
| void nndeploy::inference::InferenceParam::setInputName | ( | const std::vector< std::string > & | input_name | ) |
| void nndeploy::inference::InferenceParam::setInputNum | ( | int | input_num | ) |
| void nndeploy::inference::InferenceParam::setInputShape | ( | const std::vector< int > & | input_shape, |
| int | i = -1 |
||
| ) |
| void nndeploy::inference::InferenceParam::setInputShape | ( | const std::vector< std::vector< int >> & | input_shape | ) |
| void nndeploy::inference::InferenceParam::setIsDynamicShape | ( | bool | is_dynamic_shape | ) |
| void nndeploy::inference::InferenceParam::setIsPath | ( | bool | is_path | ) |
| void nndeploy::inference::InferenceParam::setLibraryPath | ( | const std::string & | library_path, |
| int | i = -1 |
||
| ) |
| void nndeploy::inference::InferenceParam::setLibraryPath | ( | const std::vector< std::string > & | library_path | ) |
| void nndeploy::inference::InferenceParam::setLicense | ( | const std::string & | license | ) |
| void nndeploy::inference::InferenceParam::setMaxShape | ( | const base::ShapeMap & | max_shape | ) |
| void nndeploy::inference::InferenceParam::setMinShape | ( | const base::ShapeMap & | min_shape | ) |
| void nndeploy::inference::InferenceParam::setModelType | ( | base::ModelType | type | ) |
| void nndeploy::inference::InferenceParam::setModelValue | ( | const std::string & | model_value, |
| int | i = -1 |
||
| ) |
| void nndeploy::inference::InferenceParam::setModelValue | ( | const std::vector< std::string > & | model_value | ) |
| void nndeploy::inference::InferenceParam::setNumThread | ( | int | num_thread | ) |
| void nndeploy::inference::InferenceParam::setOptShape | ( | const base::ShapeMap & | opt_shape | ) |
| void nndeploy::inference::InferenceParam::setOutputName | ( | const std::string & | output_name, |
| int | i = -1 |
||
| ) |
| void nndeploy::inference::InferenceParam::setOutputName | ( | const std::vector< std::string > & | output_name | ) |
| void nndeploy::inference::InferenceParam::setOutputNum | ( | int | output_num | ) |
| void nndeploy::inference::InferenceParam::setPowerType | ( | base::PowerType | type | ) |
| void nndeploy::inference::InferenceParam::setPrecisionType | ( | base::PrecisionType | type | ) |
| void nndeploy::inference::InferenceParam::setShareMemoryMode | ( | base::ShareMemoryType | mode | ) |
| std::vector<std::string> nndeploy::inference::InferenceParam::cache_path_ = {""} |
Definition at line 128 of file inference_param.h.
| base::DeviceType nndeploy::inference::InferenceParam::device_type_ |
Definition at line 116 of file inference_param.h.
| base::EncryptType nndeploy::inference::InferenceParam::encrypt_type_ |
Definition at line 113 of file inference_param.h.
| std::vector<std::string> nndeploy::inference::InferenceParam::external_model_data_ |
Definition at line 107 of file inference_param.h.
| int nndeploy::inference::InferenceParam::gpu_tune_kernel_ = 1 |
Definition at line 118 of file inference_param.h.
| base::InferenceType nndeploy::inference::InferenceParam::inference_type_ = base::kInferenceTypeNotSupport |
Definition at line 103 of file inference_param.h.
| std::vector<std::string> nndeploy::inference::InferenceParam::input_name_ |
Definition at line 109 of file inference_param.h.
| int nndeploy::inference::InferenceParam::input_num_ = 1 |
Definition at line 108 of file inference_param.h.
| std::vector<std::vector<int> > nndeploy::inference::InferenceParam::input_shape_ |
Definition at line 110 of file inference_param.h.
| bool nndeploy::inference::InferenceParam::is_dynamic_shape_ = false |
Definition at line 124 of file inference_param.h.
| bool nndeploy::inference::InferenceParam::is_path_ = true |
Definition at line 105 of file inference_param.h.
| std::vector<std::string> nndeploy::inference::InferenceParam::library_path_ = {""} |
Definition at line 129 of file inference_param.h.
| std::string nndeploy::inference::InferenceParam::license_ |
Definition at line 115 of file inference_param.h.
| base::ShapeMap nndeploy::inference::InferenceParam::max_shape_ = base::ShapeMap() |
Definition at line 127 of file inference_param.h.
| base::ShapeMap nndeploy::inference::InferenceParam::min_shape_ = base::ShapeMap() |
Definition at line 125 of file inference_param.h.
| base::ModelType nndeploy::inference::InferenceParam::model_type_ = base::kModelTypeOnnx |
Definition at line 104 of file inference_param.h.
| std::vector<std::string> nndeploy::inference::InferenceParam::model_value_ |
Definition at line 106 of file inference_param.h.
| int nndeploy::inference::InferenceParam::num_thread_ = 4 |
Definition at line 117 of file inference_param.h.
| base::ShapeMap nndeploy::inference::InferenceParam::opt_shape_ = base::ShapeMap() |
Definition at line 126 of file inference_param.h.
| std::vector<std::string> nndeploy::inference::InferenceParam::output_name_ |
Definition at line 112 of file inference_param.h.
| int nndeploy::inference::InferenceParam::output_num_ = 1 |
Definition at line 111 of file inference_param.h.
| base::ParallelType nndeploy::inference::InferenceParam::parallel_type_ = base::kParallelTypeSequential |
Definition at line 130 of file inference_param.h.
| base::PowerType nndeploy::inference::InferenceParam::power_type_ = base::kPowerTypeNormal |
Definition at line 123 of file inference_param.h.
| base::PrecisionType nndeploy::inference::InferenceParam::precision_type_ |
Definition at line 121 of file inference_param.h.
| base::ShareMemoryType nndeploy::inference::InferenceParam::share_memory_mode_ |
Definition at line 119 of file inference_param.h.
| int nndeploy::inference::InferenceParam::worker_num_ = 1 |
Definition at line 131 of file inference_param.h.