myriad_plugin_config.hpp
Go to the documentation of this file.
1 // Copyright (C) 2018-2020 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4 
5 /**
6  * @brief A header that defines advanced related properties for VPU plugins.
7  * These properties should be used in SetConfig() and LoadNetwork() methods of plugins
8  *
9  * @file
10  */
11 
12 #pragma once
13 
14 #include <string>
15 
16 #include "ie_plugin_config.hpp"
17 #include "ie_api.h"
18 
19 /**
20  * @def VPU_MYRIAD_CONFIG_KEY(name)
21  * @brief Shortcut for defining VPU MYRIAD configuration key
22  */
23 #define VPU_MYRIAD_CONFIG_KEY(name) InferenceEngine::VPUConfigParams::_CONFIG_KEY(VPU_MYRIAD_##name)
24 /**
25  * @def VPU_MYRIAD_CONFIG_VALUE(name)
26  * @brief Shortcut for defining VPU MYRIAD configuration value
27  */
28 #define VPU_MYRIAD_CONFIG_VALUE(name) InferenceEngine::VPUConfigParams::VPU_MYRIAD_##name
29 
30 #define DECLARE_VPU_MYRIAD_CONFIG_KEY(name) DECLARE_CONFIG_KEY(VPU_MYRIAD_##name)
31 #define DECLARE_VPU_MYRIAD_CONFIG_VALUE(name) DECLARE_CONFIG_VALUE(VPU_MYRIAD_##name)
32 
33 namespace InferenceEngine {
34 
35 namespace VPUConfigParams {
36 
37 /**
38  * @brief The flag to reset stalled devices: CONFIG_VALUE(YES) or CONFIG_VALUE(NO) (default)
39  * This is a plugin scope option and must be used with the plugin's SetConfig method
40  */
41 DECLARE_VPU_MYRIAD_CONFIG_KEY(FORCE_RESET);
42 
43 /**
44  * @brief This option allows to specify device.
45  * If specified device is not available then creating infer request will throw an exception.
46  */
47 DECLARE_VPU_MYRIAD_CONFIG_KEY(PLATFORM);
48 
49 /**
50  * @brief Supported keys definition for VPU_MYRIAD_CONFIG_KEY(PLATFORM) option.
51  */
52 DECLARE_VPU_MYRIAD_CONFIG_VALUE(2450);
53 DECLARE_VPU_MYRIAD_CONFIG_VALUE(2480);
54 
55 } // namespace VPUConfigParams
56 
57 } // namespace InferenceEngine
Inference Engine API.
Definition: ie_argmax_layer.hpp:15
a header for advanced hardware related properties for IE plugins
The macro defines a symbol import/export mechanism essential for Microsoft Windows(R) OS...