vpu_config.hpp
Go to the documentation of this file.
1 // Copyright (C) 2020 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4 
5 /**
6  * @brief A header that defines common config subset for VPU plugins.
7  * Include myriad_config.hpp or hddl_config.hpp directly.
8  * These properties should be used in SetConfig() and LoadNetwork() methods of plugins
9  *
10  * @file vpu_config.hpp
11  */
12 
13 #pragma once
14 
15 #include "ie_plugin_config.hpp"
16 #include "ie_api.h"
17 
18 #include <string>
19 
20 #define DECLARE_VPU_CONFIG(name) static constexpr auto name = #name
21 
22 namespace InferenceEngine {
23 
24 //
25 // Common options
26 //
27 
28 /**
29  * @brief Turn on HW stages usage (applicable for MyriadX devices only).
30  * The only possible values are:
31  * CONFIG_VALUE(YES) (default value)
32  * CONFIG_VALUE(NO)
33  */
34 DECLARE_VPU_CONFIG(MYRIAD_ENABLE_HW_ACCELERATION);
35 
36 /**
37  * @brief The flag for adding to the profiling information the time of obtaining a tensor.
38  * The only possible values are:
39  * CONFIG_VALUE(YES)
40  * CONFIG_VALUE(NO) (default value)
41  */
43 
44 /**
45  * @brief This option allows to pass custom layers binding xml.
46  * If layer is present in such an xml, it would be used during inference even if the layer is natively supported
47  */
48 DECLARE_VPU_CONFIG(MYRIAD_CUSTOM_LAYERS);
49 
50 } // namespace InferenceEngine
The macro defines a symbol import/export mechanism essential for Microsoft Windows(R) OS.
A header for advanced hardware related properties for IE plugins To use in SetConfig,...
Inference Engine C++ API.
Definition: cldnn_config.hpp:15
static constexpr auto MYRIAD_CUSTOM_LAYERS
This option allows to pass custom layers binding xml. If layer is present in such an xml,...
Definition: vpu_config.hpp:48
static constexpr auto MYRIAD_ENABLE_RECEIVING_TENSOR_TIME
The flag for adding to the profiling information the time of obtaining a tensor. The only possible va...
Definition: vpu_config.hpp:42
static constexpr auto MYRIAD_ENABLE_HW_ACCELERATION
Turn on HW stages usage (applicable for MyriadX devices only). The only possible values are: CONFIG_V...
Definition: vpu_config.hpp:34