plaidml.hpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. #ifndef OPENCV_GAPI_PLAIDML_PLAIDML_HPP
  7. #define OPENCV_GAPI_PLAIDML_PLAIDML_HPP
  8. #include <string>
  9. #include <opencv2/gapi/gcommon.hpp> // CompileArgTag
  10. namespace cv
  11. {
  12. namespace gapi
  13. {
  14. namespace plaidml
  15. {
  16. /** \addtogroup gapi_compile_args
  17. * @{
  18. */
  19. /**
  20. * @brief This structure represents the basic parameters for the experimental
  21. * PlaidML backend.
  22. */
  23. struct config
  24. {
  25. std::string dev_id; //!< Device ID. Refer to PlaidML documentation for details.
  26. std::string trg_id; //!< Target ID. Refer to PlaidML documentation for details.
  27. };
  28. /** @} gapi_compile_args */
  29. } // namespace plaidml
  30. } // namespace gapi
  31. namespace detail
  32. {
  33. template<> struct CompileArgTag<cv::gapi::plaidml::config>
  34. {
  35. static const char* tag() { return "gapi.plaidml.config"; }
  36. };
  37. } // namespace detail
  38. } // namespace cv
  39. #endif // OPENCV_GAPI_PLAIDML_PLAIDML_HPP