Face Engine SDK  5.3.0
A face detection, recognition and tracking engine.
 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_SSE42, // CPU with SSE4.2 ISA support
18  CPU_AVX2, // CPU with AVX2 ISA support
19 
20  GPU_INT8, // GPU with INT8 inference. Only Pascal+
21  CPU_ARM_INT8,
22 
23  GPU_MOBILE, // GPU for mobiles
24 
25  Invalid = -1
26  };
27 
33  struct LaunchOptions {
34  DeviceClass deviceClass = DeviceClass::CPU;
35 
36  // Cpu options
37  bool runConcurrently = true;
38 
39  //External device options (GPU/NPU etc.)
40  //use the first device that the runtime was able to find
41  static constexpr int32_t defaultDeviceId = -1;
42  //let the runtime decide which external device to run on
43  static constexpr int32_t autoScheduling = -2;
44  int32_t deviceId = defaultDeviceId;
45  };
46 }
LaunchOptions struct configures inference options on per-estimator/detector basis, giving user fine grained control over cpu/gpu utilisation.
Definition: LaunchOptions.h:33
DeviceClass
DeviceClass specifies which device/instruction set to use for cnn inference.
Definition: LaunchOptions.h:11