60 lines
1.9 KiB
C++
60 lines
1.9 KiB
C++
// Copyright (C) 2018-2019 Intel Corporation
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
/**
|
|
* @brief A header that defines advanced related properties for DLIA plugins.
|
|
* These properties should be used in SetConfig() and LoadNetwork() methods of plugins
|
|
*
|
|
* @file dlia_config.hpp
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include "ie_plugin_config.hpp"
|
|
|
|
namespace InferenceEngine {
|
|
|
|
namespace TemplateMetrics {
|
|
|
|
/**
|
|
* @def TEMPLATE_METRIC_VALUE(name)
|
|
* @brief Shortcut for defining Template metric values
|
|
*/
|
|
#define TEMPLATE_METRIC_VALUE(name) InferenceEngine::TemplateMetrics::name
|
|
#define DECLARE_TEMPLATE_METRIC_VALUE(name) static constexpr auto name = #name
|
|
|
|
// ! [public_header:metrics]
|
|
/**
|
|
* @brief Defines whether current Template device instance supports hardware blocks for fast convolution computations.
|
|
*/
|
|
DECLARE_TEMPLATE_METRIC_VALUE(HARDWARE_CONVOLUTION);
|
|
// ! [public_header:metrics]
|
|
|
|
} // namespace TemplateMetrics
|
|
|
|
namespace TemplateConfigParams {
|
|
|
|
/**
|
|
* @def TEMPLATE_CONFIG_KEY(name)
|
|
* @brief Shortcut for defining Template device configuration keys
|
|
*/
|
|
#define TEMPLATE_CONFIG_KEY(name) InferenceEngine::TemplateConfigParams::_CONFIG_KEY(TEMPLATE_##name)
|
|
|
|
#define DECLARE_TEMPLATE_CONFIG_KEY(name) DECLARE_CONFIG_KEY(TEMPLATE_##name)
|
|
#define DECLARE_TEMPLATE_CONFIG_VALUE(name) DECLARE_CONFIG_VALUE(TEMPLATE_##name)
|
|
|
|
/**
|
|
* @brief The key to define the type of transformations for TEMPLATE inputs and outputs.
|
|
* TEMPLATE use custom data layout for input and output blobs. IE TEMPLATE Plugin provides custom
|
|
* optimized version of transformation functions that do not use OpenMP and much more faster
|
|
* than native TEMPLATE functions. Values: "NO" - optimized plugin transformations
|
|
* are used, "YES" - native TEMPLATE transformations are used.
|
|
*/
|
|
DECLARE_TEMPLATE_CONFIG_KEY(ANY_CONFIG_KEY);
|
|
|
|
|
|
} // namespace TemplateConfigParams
|
|
} // namespace InferenceEngine
|