17 #include "fastdeploy/core/fd_type.h" 19 #if (defined(WITH_LITE_STATIC) && defined(WITH_STATIC_LIB)) 23 #if defined(WITH_STATIC_WARNING) 24 #warning You are using the FastDeploy static library. We will automatically add some registration codes for ops, kernels and passes for Paddle Lite. // NOLINT 26 #if !defined(WITH_STATIC_LIB_AT_COMPILING) 27 #include "paddle_use_ops.h" 28 #include "paddle_use_kernels.h" 29 #include "paddle_use_passes.h" 61 Device device = Device::CPU;
93 std::map<std::string, std::vector<std::vector<int64_t>>>
std::vector< std::string > nnadapter_device_names
nnadapter_device_names
Definition: option.h:96
std::string nnadapter_model_cache_dir
nnadapter_model_cache_dir
Definition: option.h:89
Use Lite Backend with no bind power mode.
Definition: option.h:46
bool kunlunxin_enable_multi_stream
kunlunxin_enable_multi_stream
Definition: option.h:78
Use Lite Backend with low power mode.
Definition: option.h:44
std::string kunlunxin_precision
kunlunxin_precision
Definition: option.h:74
bool enable_fp16
Enable use half precision.
Definition: option.h:59
Use Lite Backend with rand high mode.
Definition: option.h:47
std::string kunlunxin_autotune_file
kunlunxin_autotune_file
Definition: option.h:72
std::string nnadapter_subgraph_partition_config_path
nnadapter_subgraph_partition_config_path
Definition: option.h:83
std::map< std::string, std::vector< std::vector< int64_t > > > nnadapter_dynamic_shape_info
nnadapter_dynamic_shape_info
Definition: option.h:94
std::string nnadapter_context_properties
nnadapter_context_properties
Definition: option.h:87
int kunlunxin_l3_workspace_size
kunlunxin_l3_workspace_size
Definition: option.h:66
LitePowerMode
Definition: option.h:42
Option object to configure Paddle Lite backend.
Definition: option.h:53
Use Lite Backend with high power mode.
Definition: option.h:43
int power_mode
Paddle Lite power mode for mobile device.
Definition: option.h:55
std::string nnadapter_subgraph_partition_config_buffer
nnadapter_subgraph_partition_config_buffer
Definition: option.h:85
bool kunlunxin_adaptive_seqlen
kunlunxin_adaptive_seqlen
Definition: option.h:76
std::string optimized_model_dir
Optimized model dir for CxxConfig.
Definition: option.h:81
std::string nnadapter_mixed_precision_quantization_config_path
nnadapter_mixed_precision_quantization_config_path
Definition: option.h:91
bool kunlunxin_locked
kunlunxin_locked
Definition: option.h:68
Use Lite Backend with rand low power mode.
Definition: option.h:48
bool kunlunxin_autotune
kunlunxin_autotune
Definition: option.h:70
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16
Use Lite Backend with full power mode.
Definition: option.h:45