Download modules/dnn/src/cuda/memory.hpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 819 Bytes
-
https://huggingface.co/tgollogly/test/resolve/main/modules/dnn/src/cuda/memory.hpp
- Command line
-
hf download hf://tgollogly/test/modules/dnn/src/cuda/memory.hpp
-
curl -L -o memory.hpp https://huggingface.co/tgollogly/test/resolve/main/modules/dnn/src/cuda/memory.hpp
819 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. | |
| namespace cv { namespace dnn { namespace cuda4dnn { namespace csl { namespace device { | |
| template <class T> | |
| __device__ T load_ldg(const T& src) { | |
| return __ldg(&src); | |
| return src; | |
| } | |
| template <class T> | |
| __device__ T load_ldg(const T* src) { | |
| return __ldg(src); | |
| return *src; | |
| } | |
| }}}}} /* namespace cv::dnn::cuda4dnn::csl::device */ | |