The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
gcfsnet_bin/rnn.c File Reference

Functions

static float tansig_approx (float x)
 
static float sigmoid_approx (float x)
 
static float relu (float x)
 
void compute_dense (const DenseLayer *layer, float *output, const float *input)
 
void compute_dense_grouped (const DenseLayer *layer, float *output, const float *input)
 
void compute_dconv_1x1_grouped (const DConvLayer1x1 *dclayer, float *output, const float *input, const float *input_skip)
 
void add_skip (int input_size, float *output, const float *input, const float *input_skip)
 
void compute_scale (const ScalerLayer *dclayer, float *output, const float *input)
 
void compute_dconv_1xX_grouped (const DConvLayer *dclayer, counter *idx_start, counter *idx_write, float *buffer, float *output, const float *input)
 
void compute_gru_grouped (const GRULayer *gru, float *state, const float *input)
 
void compute_rnn (RNNState *rnn, float *filter_b, float *filter_t, const float *input)
 

Function Documentation

◆ tansig_approx()

static float tansig_approx ( float  x)
inlinestatic

◆ sigmoid_approx()

static float sigmoid_approx ( float  x)
inlinestatic

◆ relu()

static float relu ( float  x)
inlinestatic

◆ compute_dense()

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

◆ compute_dense_grouped()

void compute_dense_grouped ( const DenseLayer layer,
float *  output,
const float *  input 
)

◆ compute_dconv_1x1_grouped()

void compute_dconv_1x1_grouped ( const DConvLayer1x1 dclayer,
float *  output,
const float *  input,
const float *  input_skip 
)

◆ add_skip()

void add_skip ( int  input_size,
float *  output,
const float *  input,
const float *  input_skip 
)

◆ compute_scale()

void compute_scale ( const ScalerLayer dclayer,
float *  output,
const float *  input 
)

◆ compute_dconv_1xX_grouped()

void compute_dconv_1xX_grouped ( const DConvLayer dclayer,
counter idx_start,
counter idx_write,
float *  buffer,
float *  output,
const float *  input 
)

◆ compute_gru_grouped()

void compute_gru_grouped ( const GRULayer gru,
float *  state,
const float *  input 
)

◆ compute_rnn()

void compute_rnn ( RNNState rnn,
float *  filter_b,
float *  filter_t,
const float *  input 
)