hc
2023-05-26 a23f51ed7a39e452c1037343a84d7db1ca2c5bd7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2019 Intel Corporation
 
 
#ifndef OPENCV_GAPI_PLAIDML_PLAIDML_HPP
#define OPENCV_GAPI_PLAIDML_PLAIDML_HPP
 
#include <string>
#include <opencv2/gapi/gcommon.hpp> // CompileArgTag
 
namespace cv
{
namespace gapi
{
namespace plaidml
{
 
/** \addtogroup gapi_compile_args
 * @{
 */
/**
 * @brief This structure represents the basic parameters for the experimental
 * PlaidML backend.
 */
struct config
{
    std::string dev_id; //!< Device ID. Refer to PlaidML documentation for details.
    std::string trg_id; //!< Target ID. Refer to PlaidML documentation for details.
};
/** @} gapi_compile_args */
 
} // namespace plaidml
} // namespace gapi
 
namespace detail
{
    template<> struct CompileArgTag<cv::gapi::plaidml::config>
    {
        static const char* tag() { return "gapi.plaidml.config"; }
    };
} // namespace detail
 
} // namespace cv
 
#endif // OPENCV_GAPI_PLAIDML_PLAIDML_HPP