17 #include "fastdeploy/core/fd_type.h" 28 Device device = Device::CPU;
30 bool long_to_int =
true;
33 bool use_nvidia_tf32 =
false;
35 int32_t unconst_ops_thres = -1;
36 std::string poros_file =
"";
37 std::vector<FDDataType> prewarm_datatypes = {FDDataType::FP32};
39 bool enable_fp16 =
false;
40 bool enable_int8 =
false;
41 bool is_dynamic =
false;
42 size_t max_batch_size = 32;
43 size_t max_workspace_size = 1 << 30;
Option object to configure Poros backend.
Definition: option.h:27
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16