// 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, T alpha); 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 ceil(const csl::Stream& stream, csl::Span output, csl::View input); template void floor(const csl::Stream& stream, csl::Span output, csl::View input); template void log(const csl::Stream& stream, csl::Span output, csl::View input); template void rint(const csl::Stream& stream, csl::Span output, csl::View input); template void sqrt(const csl::Stream& stream, csl::Span output, csl::View input); template void not_k(const csl::Stream& stream, csl::Span output, csl::View input); template void acos(const csl::Stream& stream, csl::Span output, csl::View input); template void acosh(const csl::Stream& stream, csl::Span output, csl::View input); template void asin(const csl::Stream& stream, csl::Span output, csl::View input); template void asinh(const csl::Stream& stream, csl::Span output, csl::View input); template void atan(const csl::Stream& stream, csl::Span output, csl::View input); template void atanh(const csl::Stream& stream, csl::Span output, csl::View input); template void cos(const csl::Stream& stream, csl::Span output, csl::View input); template void cosh(const csl::Stream& stream, csl::Span output, csl::View input); template void erf(const csl::Stream& stream, csl::Span output, csl::View input); template void hardswish(const csl::Stream& stream, csl::Span output, csl::View input); template void sin(const csl::Stream& stream, csl::Span output, csl::View input); template void sinh(const csl::Stream& stream, csl::Span output, csl::View input); template void softplus(const csl::Stream& stream, csl::Span output, csl::View input); template void softsign(const csl::Stream& stream, csl::Span output, csl::View input); template void tan(const csl::Stream& stream, csl::Span output, csl::View input); template void celu(const csl::Stream& stream, csl::Span output, csl::View input, T alpha); template void hardsigmoid(const csl::Stream& stream, csl::Span output, csl::View input, T alpha, T beta); template void selu(const csl::Stream& stream, csl::Span output, csl::View input, T alpha, T gamma); template void gelu(const csl::Stream& stream, csl::Span output, csl::View input); template void thresholdedrelu(const csl::Stream& stream, csl::Span output, csl::View input, T alpha); 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); template void sign(const csl::Stream& stream, csl::Span output, csl::View input); template void shrink(const csl::Stream& stream, csl::Span output, csl::View input, T bias, T lambd); template void reciprocal(const csl::Stream& stream, csl::Span output, csl::View input); }}}} /* namespace cv::dnn::cuda4dnn::kernels */ #endif /* OPENCV_DNN_SRC_CUDA4DNN_KERNELS_ACTIVATIONS_HPP */