Download modules/gapi/src/backends/plaidml/plaidml_util.hpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 987 Bytes
-
https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/backends/plaidml/plaidml_util.hpp
- Command line
-
hf download hf://tgollogly/test/modules/gapi/src/backends/plaidml/plaidml_util.hpp
-
curl -L -o plaidml_util.hpp https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/backends/plaidml/plaidml_util.hpp
987 Bytes
| // 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 | |
| namespace cv | |
| { | |
| namespace util | |
| { | |
| namespace plaidml | |
| { | |
| inline plaidml_datatype depth_from_ocv(int depth) | |
| { | |
| switch(depth) | |
| { | |
| case CV_8U : return PLAIDML_DATA_UINT8; | |
| case CV_8S : return PLAIDML_DATA_INT8; | |
| case CV_16U : return PLAIDML_DATA_UINT16; | |
| case CV_16S : return PLAIDML_DATA_INT16; | |
| case CV_32S : return PLAIDML_DATA_INT32; | |
| case CV_32F : return PLAIDML_DATA_FLOAT32; | |
| case CV_64F : return PLAIDML_DATA_FLOAT64; | |
| default: util::throw_error("Unrecognized OpenCV depth"); | |
| } | |
| }; | |
| } | |
| } | |
| } | |