Skip to content

Commit d981adb

Browse files
committed
Fix support with Opus
1 parent 03945c5 commit d981adb

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/rnn.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ static OPUS_INLINE float relu(float x)
7676
return x < 0 ? 0 : x;
7777
}
7878

79-
#ifdef COMPILE_OPUS
80-
void compute_dense(const DenseLayer *layer, float *output, const float *input)
79+
static void compute_dense(const DenseLayer *layer, float *output, const float *input)
8180
{
8281
int i, j;
8382
int N, M;
@@ -107,7 +106,7 @@ void compute_dense(const DenseLayer *layer, float *output, const float *input)
107106
}
108107
}
109108

110-
void compute_gru(const GRULayer *gru, float *state, const float *input)
109+
static void compute_gru(const GRULayer *gru, float *state, const float *input)
111110
{
112111
int i, j;
113112
int N, M;
@@ -155,7 +154,6 @@ void compute_gru(const GRULayer *gru, float *state, const float *input)
155154
for (i=0;i<N;i++)
156155
state[i] = h[i];
157156
}
158-
#endif
159157

160158
#define INPUT_SIZE 42
161159

src/rnn.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ typedef struct {
6060

6161
typedef struct RNNState RNNState;
6262

63-
void compute_dense(const DenseLayer *layer, float *output, const float *input);
64-
65-
void compute_gru(const GRULayer *gru, float *state, const float *input);
66-
6763
void compute_rnn(RNNState *rnn, float *gains, float *vad, const float *input);
6864

6965
#endif /* _MLP_H_ */

0 commit comments

Comments
 (0)