Download modules/gapi/src/backends/plaidml/gplaidmlcore.cpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 1.85 kB
-
https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/backends/plaidml/gplaidmlcore.cpp
- Command line
-
hf download hf://tgollogly/test/modules/gapi/src/backends/plaidml/gplaidmlcore.cpp
-
curl -L -o gplaidmlcore.cpp https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/backends/plaidml/gplaidmlcore.cpp
1.85 kB
| // 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 | |
| GAPI_PLAIDML_LOGICAL_OP(GPlaidMLAnd, cv::gapi::core::GAnd, &); | |
| GAPI_PLAIDML_LOGICAL_OP(GPlaidMLXor, cv::gapi::core::GXor, ^); | |
| GAPI_PLAIDML_LOGICAL_OP(GPlaidMLOr , cv::gapi::core::GOr , |) | |
| GAPI_PLAIDML_ARITHMETIC_OP(GPlaidMLAdd, cv::gapi::core::GAdd, +); | |
| GAPI_PLAIDML_ARITHMETIC_OP(GPlaidMLSub, cv::gapi::core::GSub, -); | |
| cv::GKernelPackage cv::gapi::core::plaidml::kernels() | |
| { | |
| static auto pkg = cv::gapi::kernels<GPlaidMLAdd, GPlaidMLSub, GPlaidMLAnd, GPlaidMLXor, GPlaidMLOr>(); | |
| return pkg; | |
| } | |
| cv::GKernelPackage cv::gapi::core::plaidml::kernels() | |
| { | |
| // Still provide this symbol to avoid linking issues | |
| util::throw_error(std::runtime_error("G-API has been compiled without PlaidML2 support")); | |
| } | |