myriad_plugin_config.hpp
1 // Copyright (C) 2018-2019 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 vpu_plugin_config.hpp
10  */
11 
12 #pragma once
13 
14 #include <string>
15 
16 #include "ie_plugin_config.hpp"
17 #include "ie_api.h"
18 
19 #define VPU_MYRIAD_CONFIG_KEY(name) InferenceEngine::VPUConfigParams::_CONFIG_KEY(VPU_MYRIAD_##name)
20 #define VPU_MYRIAD_CONFIG_VALUE(name) InferenceEngine::VPUConfigParams::VPU_MYRIAD_##name
21 
22 #define DECLARE_VPU_MYRIAD_CONFIG_KEY(name) DECLARE_CONFIG_KEY(VPU_MYRIAD_##name)
23 #define DECLARE_VPU_MYRIAD_CONFIG_VALUE(name) DECLARE_CONFIG_VALUE(VPU_MYRIAD_##name)
24 
25 namespace InferenceEngine {
26 
27 namespace VPUConfigParams {
28 
29 /**
30  * @brief The flag to reset stalled devices: CONFIG_VALUE(YES) or CONFIG_VALUE(NO) (default)
31  * This is a plugin scope option and must be used with the plugin's SetConfig method
32  */
33 DECLARE_VPU_MYRIAD_CONFIG_KEY(FORCE_RESET);
34 
35 /**
36  * @brief This option allows to specify device.
37  * If specified device is not available then creating infer request will throw an exception.
38  */
39 DECLARE_VPU_MYRIAD_CONFIG_KEY(PLATFORM);
40 
41 /**
42  * @brief Supported keys definition for VPU_MYRIAD_CONFIG_KEY(PLATFORM) option.
43  */
44 DECLARE_VPU_MYRIAD_CONFIG_VALUE(2450);
45 DECLARE_VPU_MYRIAD_CONFIG_VALUE(2480);
46 
47 } // namespace VPUConfigParams
48 
49 } // namespace InferenceEngine
Definition: ie_argmax_layer.hpp:11
a header for advanced hardware related properties for clDNN plugin To use in SetConfig() method of pl...
The macro defines a symbol import/export mechanism essential for Microsoft Windows(R) OS...