|
|
|
@ -119,8 +119,8 @@ void sigmoid(const Stream& stream, Span<T> output, View<T> input) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
template <class T> |
|
|
|
|
void elu(const Stream& stream, Span<T> output, View<T> input) { |
|
|
|
|
generic_op<T, ELUFunctor<T>>(stream, output, input); |
|
|
|
|
void elu(const Stream& stream, Span<T> output, View<T> input, T alpha) { |
|
|
|
|
generic_op<T, ELUFunctor<T>>(stream, output, input, {alpha}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
template <class T> |
|
|
|
@ -187,7 +187,7 @@ template void tanh<__half>(const Stream&, Span<__half>, View<__half>); |
|
|
|
|
template void swish<__half>(const Stream&, Span<__half>, View<__half>); |
|
|
|
|
template void mish<__half>(const Stream&, Span<__half>, View<__half>); |
|
|
|
|
template void sigmoid<__half>(const Stream&, Span<__half>, View<__half>); |
|
|
|
|
template void elu<__half>(const Stream&, Span<__half>, View<__half>); |
|
|
|
|
template void elu<__half>(const Stream&, Span<__half>, View<__half>, __half); |
|
|
|
|
template void abs<__half>(const Stream& stream, Span<__half> output, View<__half> input); |
|
|
|
|
template void bnll<__half>(const Stream&, Span<__half>, View<__half>); |
|
|
|
|
template void ceil<__half>(const Stream&, Span<__half>, View<__half>); |
|
|
|
@ -207,7 +207,7 @@ template void tanh<float>(const Stream&, Span<float>, View<float>); |
|
|
|
|
template void swish<float>(const Stream&, Span<float>, View<float>); |
|
|
|
|
template void mish<float>(const Stream&, Span<float>, View<float>); |
|
|
|
|
template void sigmoid<float>(const Stream&, Span<float>, View<float>); |
|
|
|
|
template void elu<float>(const Stream&, Span<float>, View<float>); |
|
|
|
|
template void elu<float>(const Stream&, Span<float>, View<float>, float); |
|
|
|
|
template void abs<float>(const Stream& stream, Span<float> output, View<float> input); |
|
|
|
|
template void bnll<float>(const Stream&, Span<float>, View<float>); |
|
|
|
|
template void ceil<float>(const Stream&, Span<float>, View<float>); |
|
|
|
|