~iliaplatone/spacedrone.eu/inova-sis-pack

« back to all changes in this revision

Viewing changes to usr/include/dlia/dlia_config.hpp

  • Committer: Ilia Platone
  • Date: 2022-11-15 16:19:28 UTC
  • Revision ID: git-v1:b9f4c8dff67bb705341db6a18f84a3d5f61c23ce
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 DLIA plugins.
 
7
 * These properties should be used in SetConfig() and LoadNetwork() methods of plugins
 
8
 *
 
9
 * @file dlia_plugin_config.hpp
 
10
 */
 
11
 
 
12
#pragma once
 
13
 
 
14
#include <string>
 
15
#include "ie_plugin_config.hpp"
 
16
 
 
17
namespace InferenceEngine {
 
18
 
 
19
namespace DliaMetrics {
 
20
 
 
21
/**
 
22
* @brief shortcut for defining DLA metric values
 
23
*/
 
24
#define DLIA_METRIC_VALUE(name) InferenceEngine::DliaMetrics::name
 
25
#define DECLARE_DLIA_METRIC_VALUE(name) static constexpr auto name = #name
 
26
 
 
27
DECLARE_DLIA_METRIC_VALUE(FP11);
 
28
 
 
29
}  // namespace DliaMetrics
 
30
 
 
31
namespace DLIAConfigParams {
 
32
 
 
33
#define DLIA_CONFIG_KEY(name) InferenceEngine::DLIAConfigParams::_CONFIG_KEY(DLIA_##name)
 
34
 
 
35
#define DECLARE_DLIA_CONFIG_KEY(name) DECLARE_CONFIG_KEY(DLIA_##name)
 
36
#define DECLARE_DLIA_CONFIG_VALUE(name) DECLARE_CONFIG_VALUE(DLIA_##name)
 
37
 
 
38
/**
 
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.
 
44
 */
 
45
DECLARE_DLIA_CONFIG_KEY(IO_TRANSFORMATIONS_NATIVE);
 
46
 
 
47
/**
 
48
 * @brief The key to define path to DLA bitstreams architectures folder
 
49
 */
 
50
DECLARE_DLIA_CONFIG_KEY(ARCH_ROOT_DIR);
 
51
 
 
52
/**
 
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"
 
55
 */
 
56
DECLARE_DLIA_CONFIG_KEY(PERF_ESTIMATION);
 
57
 
 
58
/**
 
59
 * @brief The bool key to define whether information messages with a reason are printed in case the layer is unsupported by DLA
 
60
 */
 
61
DECLARE_DLIA_CONFIG_KEY(DUMP_SUPPORTED_LAYERS_INFORMATION);
 
62
 
 
63
}  // namespace DLIAConfigParams
 
64
}  // namespace InferenceEngine