Face Engine SDK
5.17.0
A face detection, recognition and tracking engine.
|
00001 #pragma once 00002 00003 #include <cstdint> 00004 00005 namespace fsdk { 00006 00011 enum class DeviceClass : int32_t { 00012 CPU = 0, 00013 00014 GPU = 1, 00015 00016 CPU_ARM = 2, 00017 CPU_AVX2, // CPU with AVX2/SSE4.2 ISA support 00018 CPU_AUTO, // if AVX2 is available, CPU_AVX2 will be taken, otherwise CPU 00019 00020 GPU_INT8, // GPU with INT8 inference. Only Pascal+ 00021 CPU_ARM_INT8, 00022 00023 GPU_MOBILE, // GPU for mobiles 00024 00025 NPU_ASCEND, 00026 00027 Invalid = -1 00028 }; 00029 00035 struct LaunchOptions { 00036 DeviceClass deviceClass = DeviceClass::CPU_AUTO; 00037 00038 // Cpu options 00039 bool runConcurrently = true; 00040 00041 // External device options (GPU/NPU etc.) 00042 // Use defaultGpuDevice from runtime configuration 00043 static constexpr int32_t defaultDeviceId = -1; 00044 int32_t deviceId = defaultDeviceId; 00045 }; 00046 } // namespace fsdk