diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2017-11-09 04:35:30 +0300 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2017-11-10 06:45:32 +0300 |
commit | ff98202e0a40cb4209ff85e2df3edcc3efc3d59f (patch) | |
tree | 8bc5ae98d2456e6f77e46961472c9d9fb1dbc3b1 /src/mlp.h | |
parent | 877d3d2cefb868aa0ebc1b000f16824b7bfeedac (diff) |
Retrained speech/music RNN
Larger network, using 8-bit weights
Diffstat (limited to 'src/mlp.h')
-rw-r--r-- | src/mlp.h | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -29,22 +29,22 @@ #include "opus_types.h" -#define WEIGHTS_SCALE (1.f/8192) +#define WEIGHTS_SCALE (1.f/128) -#define MAX_NEURONS 20 +#define MAX_NEURONS 32 typedef struct { - const opus_int16 *bias; - const opus_int16 *input_weights; + const opus_int8 *bias; + const opus_int8 *input_weights; int nb_inputs; int nb_neurons; int sigmoid; } DenseLayer; typedef struct { - const opus_int16 *bias; - const opus_int16 *input_weights; - const opus_int16 *recurrent_weights; + const opus_int8 *bias; + const opus_int8 *input_weights; + const opus_int8 *recurrent_weights; int nb_inputs; int nb_neurons; } GRULayer; |