Skip to content

Commit

Permalink
Fix support with Opus
Browse files Browse the repository at this point in the history
  • Loading branch information
almoghamdani committed Jul 26, 2019
1 parent 03945c5 commit d981adb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 2 additions & 4 deletions src/rnn.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ static OPUS_INLINE float relu(float x)
return x < 0 ? 0 : x;
}

#ifdef COMPILE_OPUS
void compute_dense(const DenseLayer *layer, float *output, const float *input)
static void compute_dense(const DenseLayer *layer, float *output, const float *input)
{
int i, j;
int N, M;
Expand Down Expand Up @@ -107,7 +106,7 @@ void compute_dense(const DenseLayer *layer, float *output, const float *input)
}
}

void compute_gru(const GRULayer *gru, float *state, const float *input)
static void compute_gru(const GRULayer *gru, float *state, const float *input)
{
int i, j;
int N, M;
Expand Down Expand Up @@ -155,7 +154,6 @@ void compute_gru(const GRULayer *gru, float *state, const float *input)
for (i=0;i<N;i++)
state[i] = h[i];
}
#endif

#define INPUT_SIZE 42

Expand Down
4 changes: 0 additions & 4 deletions src/rnn.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ typedef struct {

typedef struct RNNState RNNState;

void compute_dense(const DenseLayer *layer, float *output, const float *input);

void compute_gru(const GRULayer *gru, float *state, const float *input);

void compute_rnn(RNNState *rnn, float *gains, float *vad, const float *input);

#endif /* _MLP_H_ */

0 comments on commit d981adb

Please sign in to comment.