Merge pull request #14827 from YashasSamaga:cuda4dnn-csl-low
[platform/upstream/opencv.git] / modules / dnn / src / cuda4dnn / kernels / concat.hpp
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.
4
5 #ifndef OPENCV_DNN_SRC_CUDA4DNN_KERNELS_CONCAT_HPP
6 #define OPENCV_DNN_SRC_CUDA4DNN_KERNELS_CONCAT_HPP
7
8 #include "../csl/stream.hpp"
9 #include "../csl/tensor.hpp"
10
11 #include <cstddef>
12 #include <vector>
13
14 namespace cv { namespace dnn { namespace cuda4dnn { namespace kernels {
15
16     template <class T>
17     void concat(
18         const csl::Stream& stream,
19         csl::TensorSpan<T> output, std::size_t output_axis_offset,
20         csl::TensorView<T> input, std::size_t axis);
21
22     template <class T>
23     void concat_with_offsets(const csl::Stream& stream, csl::TensorSpan<T> output, csl::TensorView<T> input, std::vector<std::size_t> axis_offsets);
24
25 }}}} /* namespace cv::dnn::cuda4dnn::kernels */
26
27 #endif /* OPENCV_DNN_SRC_CUDA4DNN_KERNELS_CONCAT_HPP */