1
// Copyright (C) 2018-2019 Intel Corporation
2
// SPDX-License-Identifier: Apache-2.0
6
* @brief A header that defines advanced related properties for DLIA plugins.
7
* These properties should be used in SetConfig() and LoadNetwork() methods of plugins
9
* @file dlia_plugin_config.hpp
15
#include "ie_plugin_config.hpp"
17
namespace InferenceEngine {
19
namespace DliaMetrics {
22
* @brief shortcut for defining DLA metric values
24
#define DLIA_METRIC_VALUE(name) InferenceEngine::DliaMetrics::name
25
#define DECLARE_DLIA_METRIC_VALUE(name) static constexpr auto name = #name
27
DECLARE_DLIA_METRIC_VALUE(FP11);
29
} // namespace DliaMetrics
31
namespace DLIAConfigParams {
33
#define DLIA_CONFIG_KEY(name) InferenceEngine::DLIAConfigParams::_CONFIG_KEY(DLIA_##name)
35
#define DECLARE_DLIA_CONFIG_KEY(name) DECLARE_CONFIG_KEY(DLIA_##name)
36
#define DECLARE_DLIA_CONFIG_VALUE(name) DECLARE_CONFIG_VALUE(DLIA_##name)
39
* @brief The key to define the type of transformations for DLIA inputs and outputs.
40
* DLIA use custom data layout for input and output blobs. IE DLIA Plugin provides custom
41
* optimized version of transformation functions that do not use OpenMP and much more faster
42
* than native DLIA functions. Values: "NO" - optimized plugin transformations
43
* are used, "YES" - native DLIA transformations are used.
45
DECLARE_DLIA_CONFIG_KEY(IO_TRANSFORMATIONS_NATIVE);
48
* @brief The key to define path to DLA bitstreams architectures folder
50
DECLARE_DLIA_CONFIG_KEY(ARCH_ROOT_DIR);
53
* @brief The bool key to define whether theoretical performance estimation should be performed.
54
* If true, the estimated performance is dumped via performance counters as "FPGA theoretical execute time"
56
DECLARE_DLIA_CONFIG_KEY(PERF_ESTIMATION);
59
* @brief The bool key to define whether information messages with a reason are printed in case the layer is unsupported by DLA
61
DECLARE_DLIA_CONFIG_KEY(DUMP_SUPPORTED_LAYERS_INFORMATION);
63
} // namespace DLIAConfigParams
64
} // namespace InferenceEngine