Face Engine SDK
5.21.0
A face detection, recognition and tracking engine.
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
CPU_AUTO,
// if AVX2 is available, CPU_AVX2 will be taken, otherwise CPU
19
20
GPU_INT8,
// GPU with INT8 inference. Only Pascal+
21
CPU_ARM_INT8,
22
23
GPU_MOBILE,
// GPU for mobiles
24
25
NPU_ASCEND,
26
27
Invalid = -1
28
};
29
35
struct
LaunchOptions
{
36
DeviceClass
deviceClass = DeviceClass::CPU_AUTO;
37
38
// Cpu options
39
bool
runConcurrently =
true
;
40
41
// External device options (GPU/NPU etc.)
42
// Use defaultGpuDevice from runtime configuration
43
static
constexpr int32_t defaultDeviceId = -1;
44
int32_t deviceId = defaultDeviceId;
45
};
46
}
// namespace fsdk
fsdk::LaunchOptions
LaunchOptions struct configures inference options on per-estimator/detector basis,...
Definition:
LaunchOptions.h:35
fsdk::DeviceClass
DeviceClass
DeviceClass specifies which device/instruction set to use for cnn inference.
Definition:
LaunchOptions.h:11
fsdk
SDK namespace.
Definition:
IAGSEstimator.h:8
fsdk.framework
Headers
LaunchOptions.h
Generated on Mon Apr 15 2024 20:52:53 for Face Engine SDK by
1.8.20