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.
5 #ifndef OPENCV_DNN_SRC_CUDA4DNN_KERNELS_REGION_HPP
6 #define OPENCV_DNN_SRC_CUDA4DNN_KERNELS_REGION_HPP
8 #include "../csl/stream.hpp"
9 #include "../csl/span.hpp"
13 namespace cv { namespace dnn { namespace cuda4dnn { namespace kernels {
16 void sigmoid_strided(const csl::Stream& stream, csl::Span<T> output, csl::View<T> input, std::size_t n, std::size_t stride, std::size_t offset);
19 void softmax_strided(const csl::Stream& stream, csl::Span<T> output, csl::View<T> input, std::size_t n, std::size_t stride, std::size_t offset);
22 void region_finalize(const csl::Stream& stream, csl::Span<T> output, csl::View<T> input, csl::View<T> bias,
23 T object_prob_cutoff, T class_prob_cutoff,
24 std::size_t height_norm, std::size_t width_norm,
25 std::size_t rows, std::size_t cols,
26 std::size_t boxes_per_cell,
30 }}}} /* namespace cv::dnn::cuda4dnn::kernels */
32 #endif /* OPENCV_DNN_SRC_CUDA4DNN_KERNELS_REGION_HPP */