@@ -233,6 +233,26 @@ void tan(const Stream& stream, Span<T> output, View<T> input) {
233
233
generic_op<T, TanFunctor<T>>(stream, output, input);
234
234
}
235
235
236
+ template <class T >
237
+ void celu (const Stream& stream, Span<T> output, View<T> input, T alpha) {
238
+ generic_op<T, CeluFunctor<T>>(stream, output, input, {alpha});
239
+ }
240
+
241
+ template <class T >
242
+ void hardsigmoid (const Stream& stream, Span<T> output, View<T> input, T alpha, T beta) {
243
+ generic_op<T, HardSigmoidFunctor<T>>(stream, output, input, {alpha, beta});
244
+ }
245
+
246
+ template <class T >
247
+ void selu (const Stream& stream, Span<T> output, View<T> input, T alpha, T gamma) {
248
+ generic_op<T, SeluFunctor<T>>(stream, output, input, {alpha, gamma });
249
+ }
250
+
251
+ template <class T >
252
+ void thresholdedrelu (const Stream& stream, Span<T> output, View<T> input, T alpha) {
253
+ generic_op<T, ThresholdedReluFunctor<T>>(stream, output, input, {alpha});
254
+ }
255
+
236
256
template <class T >
237
257
void abs (const Stream& stream, Span<T> output, View<T> input) {
238
258
generic_op<T, AbsFunctor<T>>(stream, output, input);
@@ -286,6 +306,10 @@ template void sinh<__half>(const Stream&, Span<__half>, View<__half>);
286
306
template void softplus<__half>(const Stream&, Span<__half>, View<__half>);
287
307
template void softsign<__half>(const Stream&, Span<__half>, View<__half>);
288
308
template void tan<__half>(const Stream&, Span<__half>, View<__half>);
309
+ template void celu<__half>(const Stream&, Span<__half>, View<__half>, __half);
310
+ template void hardsigmoid<__half>(const Stream&, Span<__half>, View<__half>, __half, __half);
311
+ template void selu<__half>(const Stream&, Span<__half>, View<__half>, __half, __half);
312
+ template void thresholdedrelu<__half>(const Stream&, Span<__half>, View<__half>, __half);
289
313
template void power<__half>(const Stream&, Span<__half>, View<__half>, __half, __half, __half);
290
314
template void exp<__half>(const Stream&, Span<__half>, View<__half>, __half, __half);
291
315
#endif
@@ -321,6 +345,10 @@ template void sinh<float>(const Stream&, Span<float>, View<float>);
321
345
template void softplus<float >(const Stream&, Span<float >, View<float >);
322
346
template void softsign<float >(const Stream&, Span<float >, View<float >);
323
347
template void tan<float >(const Stream&, Span<float >, View<float >);
348
+ template void celu<float >(const Stream&, Span<float >, View<float >, float );
349
+ template void hardsigmoid<float >(const Stream&, Span<float >, View<float >, float , float );
350
+ template void selu<float >(const Stream&, Span<float >, View<float >, float , float );
351
+ template void thresholdedrelu<float >(const Stream&, Span<float >, View<float >, float );
324
352
template void power<float >(const Stream&, Span<float >, View<float >, float , float , float );
325
353
template void exp<float >(const Stream&, Span<float >, View<float >, float , float );
326
354
0 commit comments