Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/mlp.h
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2017-11-09 04:35:30 +0300
committerJean-Marc Valin <jmvalin@jmvalin.ca>2017-11-10 06:45:32 +0300
commitff98202e0a40cb4209ff85e2df3edcc3efc3d59f (patch)
tree8bc5ae98d2456e6f77e46961472c9d9fb1dbc3b1 /src/mlp.h
parent877d3d2cefb868aa0ebc1b000f16824b7bfeedac (diff)
Retrained speech/music RNN
Larger network, using 8-bit weights
Diffstat (limited to 'src/mlp.h')
-rw-r--r--src/mlp.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mlp.h b/src/mlp.h
index e3d1e9e5..d7670550 100644
--- a/src/mlp.h
+++ b/src/mlp.h
@@ -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;