nndeploy.inference.inference_param

Functions

create_inference_param(type)

register_inference_param_creator(type, creator)

Classes

InferenceParam(inference_type)

InferenceParamCreator()

class nndeploy.inference.inference_param.InferenceParam(inference_type)[源代码]

基类:InferenceParam

__init__(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: nndeploy._nndeploy_internal.base.InferenceType) None[源代码]
set_inference_type(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: nndeploy._nndeploy_internal.base.InferenceType) None[源代码]
get_inference_type(self: nndeploy._nndeploy_internal.inference.InferenceParam) nndeploy._nndeploy_internal.base.InferenceType[源代码]
set_model_type(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: nndeploy._nndeploy_internal.base.ModelType) None[源代码]
get_model_type(self: nndeploy._nndeploy_internal.inference.InferenceParam) nndeploy._nndeploy_internal.base.ModelType[源代码]
set_is_path(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: bool) None[源代码]
get_is_path(self: nndeploy._nndeploy_internal.inference.InferenceParam) bool[源代码]
set_model_value(*args, **kwargs)[源代码]

Overloaded function.

  1. set_model_value(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: list[str]) -> None

  2. set_model_value(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: str, arg1: int) -> None

get_model_value(self: nndeploy._nndeploy_internal.inference.InferenceParam) list[str][源代码]
set_input_num(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: int) None[源代码]
get_input_num(self: nndeploy._nndeploy_internal.inference.InferenceParam) int[源代码]
set_input_name(*args, **kwargs)[源代码]

Overloaded function.

  1. set_input_name(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: list[str]) -> None

  2. set_input_name(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: str, arg1: int) -> None

get_input_name(self: nndeploy._nndeploy_internal.inference.InferenceParam) list[str][源代码]
set_input_shape(*args, **kwargs)[源代码]

Overloaded function.

  1. set_input_shape(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: list[list[int]]) -> None

  2. set_input_shape(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: list[int], arg1: int) -> None

get_input_shape(self: nndeploy._nndeploy_internal.inference.InferenceParam) list[list[int]][源代码]
set_output_num(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: int) None[源代码]
get_output_num(self: nndeploy._nndeploy_internal.inference.InferenceParam) int[源代码]
set_output_name(*args, **kwargs)[源代码]

Overloaded function.

  1. set_output_name(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: list[str]) -> None

  2. set_output_name(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: str, arg1: int) -> None

get_output_name(self: nndeploy._nndeploy_internal.inference.InferenceParam) list[str][源代码]
set_encrypt_type(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: nndeploy._nndeploy_internal.base.EncryptType) None[源代码]
get_encrypt_type(self: nndeploy._nndeploy_internal.inference.InferenceParam) nndeploy._nndeploy_internal.base.EncryptType[源代码]
set_license(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: str) None[源代码]
get_license(self: nndeploy._nndeploy_internal.inference.InferenceParam) str[源代码]
set_device_type(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: nndeploy._nndeploy_internal.base.DeviceType) None[源代码]
get_device_type(self: nndeploy._nndeploy_internal.inference.InferenceParam) nndeploy._nndeploy_internal.base.DeviceType[源代码]
set_num_thread(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: int) None[源代码]
get_num_thread(self: nndeploy._nndeploy_internal.inference.InferenceParam) int[源代码]
set_gpu_tune_kernel(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: int) None[源代码]
get_gpu_tune_kernel(self: nndeploy._nndeploy_internal.inference.InferenceParam) int[源代码]
set_share_memory_mode(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: nndeploy._nndeploy_internal.base.ShareMemoryType) None[源代码]
get_share_memory_mode(self: nndeploy._nndeploy_internal.inference.InferenceParam) nndeploy._nndeploy_internal.base.ShareMemoryType[源代码]
set_precision_type(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: nndeploy._nndeploy_internal.base.PrecisionType) None[源代码]
get_precision_type(self: nndeploy._nndeploy_internal.inference.InferenceParam) nndeploy._nndeploy_internal.base.PrecisionType[源代码]
set_power_type(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: nndeploy._nndeploy_internal.base.PowerType) None[源代码]
get_power_type(self: nndeploy._nndeploy_internal.inference.InferenceParam) nndeploy._nndeploy_internal.base.PowerType[源代码]
set_is_dynamic_shape(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: bool) None[源代码]
get_is_dynamic_shape(self: nndeploy._nndeploy_internal.inference.InferenceParam) bool[源代码]
set_min_shape(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: dict[str, list[int]]) None[源代码]
get_min_shape(self: nndeploy._nndeploy_internal.inference.InferenceParam) dict[str, list[int]][源代码]
set_opt_shape(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: dict[str, list[int]]) None[源代码]
get_opt_shape(self: nndeploy._nndeploy_internal.inference.InferenceParam) dict[str, list[int]][源代码]
set_max_shape(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: dict[str, list[int]]) None[源代码]
get_max_shape(self: nndeploy._nndeploy_internal.inference.InferenceParam) dict[str, list[int]][源代码]
set_cache_path(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: list[str]) None[源代码]
get_cache_path(self: nndeploy._nndeploy_internal.inference.InferenceParam) list[str][源代码]
set_library_path(*args, **kwargs)[源代码]

Overloaded function.

  1. set_library_path(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: list[str]) -> None

  2. set_library_path(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: str, arg1: int) -> None

get_library_path(self: nndeploy._nndeploy_internal.inference.InferenceParam) list[str][源代码]
set(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: str, arg1: nndeploy::base::Any) nndeploy._nndeploy_internal.base.Status[源代码]
get(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: str, arg1: nndeploy::base::Any) nndeploy._nndeploy_internal.base.Status[源代码]
add_dropdown_param(self: nndeploy._nndeploy_internal.base.Param, arg0: str, arg1: list[str]) nndeploy._nndeploy_internal.base.Status
add_io_param(self: nndeploy._nndeploy_internal.base.Param, arg0: str) nndeploy._nndeploy_internal.base.Status
add_required_param(self: nndeploy._nndeploy_internal.base.Param, arg0: str) nndeploy._nndeploy_internal.base.Status
add_ui_param(self: nndeploy._nndeploy_internal.base.Param, arg0: str) nndeploy._nndeploy_internal.base.Status
property cache_path_
clear_dropdown_params(self: nndeploy._nndeploy_internal.base.Param) nndeploy._nndeploy_internal.base.Status
clear_io_params(self: nndeploy._nndeploy_internal.base.Param) nndeploy._nndeploy_internal.base.Status
clear_required_params(self: nndeploy._nndeploy_internal.base.Param) nndeploy._nndeploy_internal.base.Status
clear_ui_params(self: nndeploy._nndeploy_internal.base.Param) nndeploy._nndeploy_internal.base.Status
copy(self: nndeploy._nndeploy_internal.inference.InferenceParam) nndeploy._nndeploy_internal.base.Param
copy_to(self: nndeploy._nndeploy_internal.inference.InferenceParam, arg0: nndeploy._nndeploy_internal.base.Param) nndeploy._nndeploy_internal.base.Status
deserialize(*args, **kwargs)

Overloaded function.

  1. deserialize(self: nndeploy._nndeploy_internal.base.Param, arg0: rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >) -> nndeploy._nndeploy_internal.base.Status

  2. deserialize(self: nndeploy._nndeploy_internal.base.Param, arg0: str) -> nndeploy._nndeploy_internal.base.Status

property device_type_
property encrypt_type_
get_dropdown_params(self: nndeploy._nndeploy_internal.base.Param) dict[str, list[str]]
get_io_params(self: nndeploy._nndeploy_internal.base.Param) list[str]
get_required_params(self: nndeploy._nndeploy_internal.base.Param) list[str]
get_ui_params(self: nndeploy._nndeploy_internal.base.Param) list[str]
property gpu_tune_kernel_
property inference_type_
property input_name_
property input_num_
property input_shape_
property is_dynamic_shape_
property is_path_
property library_path_
property license_
load_file(self: nndeploy._nndeploy_internal.base.Param, arg0: str) nndeploy._nndeploy_internal.base.Status
property max_shape_
property min_shape_
property model_type_
property model_value_
property num_thread_
property opt_shape_
property output_name_
property output_num_
property power_type_
property precision_type_
remove_dropdown_param(self: nndeploy._nndeploy_internal.base.Param, arg0: str) nndeploy._nndeploy_internal.base.Status
remove_io_param(self: nndeploy._nndeploy_internal.base.Param, arg0: str) nndeploy._nndeploy_internal.base.Status
remove_required_param(self: nndeploy._nndeploy_internal.base.Param, arg0: str) nndeploy._nndeploy_internal.base.Status
remove_ui_param(self: nndeploy._nndeploy_internal.base.Param, arg0: str) nndeploy._nndeploy_internal.base.Status
save_file(self: nndeploy._nndeploy_internal.base.Param, arg0: str) nndeploy._nndeploy_internal.base.Status
serialize(*args, **kwargs)

Overloaded function.

  1. serialize(self: nndeploy._nndeploy_internal.base.Param, arg0: rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >, arg1: rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>) -> nndeploy._nndeploy_internal.base.Status

  2. serialize(self: nndeploy._nndeploy_internal.base.Param) -> str

set_io_params(self: nndeploy._nndeploy_internal.base.Param, arg0: list[str]) nndeploy._nndeploy_internal.base.Status
set_required_params(self: nndeploy._nndeploy_internal.base.Param, arg0: list[str]) nndeploy._nndeploy_internal.base.Status
set_ui_params(self: nndeploy._nndeploy_internal.base.Param, arg0: list[str]) nndeploy._nndeploy_internal.base.Status
property share_memory_mode_
class nndeploy.inference.inference_param.InferenceParamCreator[源代码]

基类:InferenceParamCreator

__init__(self: nndeploy._nndeploy_internal.inference.InferenceParamCreator) None[源代码]
create_inference_param(self: nndeploy._nndeploy_internal.inference.InferenceParamCreator, arg0: nndeploy._nndeploy_internal.base.InferenceType) nndeploy._nndeploy_internal.inference.InferenceParam[源代码]
nndeploy.inference.inference_param.register_inference_param_creator(type: InferenceType, creator: InferenceParamCreator)[源代码]
nndeploy.inference.inference_param.create_inference_param(type: InferenceType)[源代码]