github.com/kaydxh/golang@v0.0.131/pkg/gocv/cgo/third_path/opencv4/include/opencv2/gapi/plaidml/plaidml.hpp (about)

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