ref: b075eb535adef656060e19183bf52ddd2e134e29
parent: b1f94b1e9229ffc801e6190775f563f3398ab27a
author: Jean-Marc Valin <jmvalin@amazon.com>
date: Tue Jul 25 23:16:04 EDT 2023
oops, fix linear_init()
--- a/dnn/parse_lpcnet_weights.c
+++ b/dnn/parse_lpcnet_weights.c
@@ -147,7 +147,7 @@
}
if (weights_idx != NULL) {
int total_blocks;
- if ((layer->weights_idx = find_idx_check(arrays, weights_idx, nb_outputs, nb_inputs, &total_blocks)) == NULL) return 1;
+ if ((layer->weights_idx = find_idx_check(arrays, weights_idx, nb_inputs, nb_outputs, &total_blocks)) == NULL) return 1;
if (weights != NULL) {
if ((layer->weights = find_array_check(arrays, weights, SPARSE_BLOCK_SIZE*total_blocks*sizeof(layer->weights[0]))) == NULL) return 1;
}
--
⑨