Download modules/dnn/src/cuda/limits.hpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/tgollogly/test/resolve/main/modules/dnn/src/cuda/limits.hpp
- Command line
-
hf download hf://tgollogly/test/modules/dnn/src/cuda/limits.hpp
-
curl -L -o limits.hpp https://huggingface.co/tgollogly/test/resolve/main/modules/dnn/src/cuda/limits.hpp
1.12 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. | |
| namespace cv { namespace dnn { namespace cuda4dnn { namespace csl { namespace device { | |
| template <class T> | |
| struct numeric_limits; | |
| template <> | |
| struct numeric_limits<__half> { | |
| __device__ static __half min() { return 0.0000610; } | |
| __device__ static __half max() { return 65504.0; } | |
| __device__ static __half lowest() { return -65504.0; } | |
| }; | |
| template <> | |
| struct numeric_limits<float> { | |
| __device__ static float min() { return FLT_MIN; } | |
| __device__ static float max() { return FLT_MAX; } | |
| __device__ static float lowest() { return -FLT_MAX; } | |
| }; | |
| }}}}} /* namespace cv::dnn::cuda4dnn::csl::device */ | |