// 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. #ifndef OPENCV_DNN_SRC_CUDA4DNN_KERNELS_ACTIVATIONS_HPP #define OPENCV_DNN_SRC_CUDA4DNN_KERNELS_ACTIVATIONS_HPP #include "../csl/stream.hpp" #include "../csl/span.hpp" #include namespace cv { namespace dnn { namespace cuda4dnn { namespace kernels { template void relu(const csl::Stream& stream, csl::Span output, csl::View input, T slope); template void clipped_relu(const csl::Stream& stream, csl::Span output, csl::View input, T floor, T ceiling); template void axiswise_relu(const csl::Stream& stream, csl::Span output, csl::View input, std::size_t inner_size, csl::View slope); template void tanh(const csl::Stream& stream, csl::Span output, csl::View input); template void swish(const csl::Stream& stream, csl::Span output, csl::View input); template void mish(const csl::Stream& stream, csl::Span output, csl::View input); template void sigmoid(const csl::Stream& stream, csl::Span output, csl::View input); template void elu(const csl::Stream& stream, csl::Span output, csl::View input); template void abs(const csl::Stream& stream, csl::Span output, csl::View input); template void bnll(const csl::Stream& stream, csl::Span output, csl::View input); template void power(const csl::Stream& stream, csl::Span output, csl::View input, T exp, T scale, T shift); template void exp(const csl::Stream& stream, csl::Span output, csl::View input, T normScale, T normShift); }}}} /* namespace cv::dnn::cuda4dnn::kernels */ #endif /* OPENCV_DNN_SRC_CUDA4DNN_KERNELS_ACTIVATIONS_HPP */