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
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@amazon.com>2023-07-26 10:16:04 +0300
committerJean-Marc Valin <jmvalin@amazon.com>2023-07-28 02:54:10 +0300
commitb075eb535adef656060e19183bf52ddd2e134e29 (patch)
tree4547ada86ea211951167c2e6a1c215783a899bc0
parentb1f94b1e9229ffc801e6190775f563f3398ab27a (diff)
oops, fix linear_init()
-rw-r--r--dnn/parse_lpcnet_weights.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dnn/parse_lpcnet_weights.c b/dnn/parse_lpcnet_weights.c
index 06332fc7..a12cf711 100644
--- a/dnn/parse_lpcnet_weights.c
+++ b/dnn/parse_lpcnet_weights.c
@@ -147,7 +147,7 @@ int linear_init(LinearLayer *layer, const WeightArray *arrays,
}
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;
}