| Face Engine SDK 5.7.0 A face detection, recognition and tracking engine.

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
LaunchOptions.h
1 #pragma once
2
3 #include <cstdint>
4
5 namespace fsdk {
6
11 enum class DeviceClass : int32_t {
12 CPU = 0,
13
14 GPU = 1,
15
16 CPU_ARM = 2,
17 CPU_AVX2, // CPU with AVX2/SSE4.2 ISA support
18
19 GPU_INT8, // GPU with INT8 inference. Only Pascal+
20 CPU_ARM_INT8,
21
22 GPU_MOBILE, // GPU for mobiles
23
24 NPU_ASCEND,
25
26 Invalid = -1
27 };
28
34 struct LaunchOptions {
35 DeviceClass deviceClass = DeviceClass::CPU;
36
37 // Cpu options
38 bool runConcurrently = true;
39
40 //External device options (GPU/NPU etc.)
41 //Use defaultGpuDevice from runtime configuration
42 static constexpr int32_t defaultDeviceId = -1;
43 int32_t deviceId = defaultDeviceId;
44 };
45 }
fsdk::LaunchOptions
LaunchOptions struct configures inference options on per-estimator/detector basis, giving user fine grained control over cpu/gpu utilisation.
Definition: LaunchOptions.h:34
fsdk::DeviceClass
DeviceClass
DeviceClass specifies which device/instruction set to use for cnn inference.
Definition: LaunchOptions.h:11