diff --git a/dnn/nnet.c b/dnn/nnet.c index 31472033..9bbd14bf 100644 --- a/dnn/nnet.c +++ b/dnn/nnet.c @@ -46,6 +46,17 @@ #define SOFTMAX_HACK +#define MAX_ACTIVATIONS (4096) + +static OPUS_INLINE void vec_swish(float *y, const float *x, int N) +{ + int i; + float tmp[MAX_ACTIVATIONS]; + celt_assert(N <= MAX_ACTIVATIONS); + vec_sigmoid(tmp, x, N); + for (i=0;i