diff options
author | Jean-Marc Valin <jmvalin@amazon.com> | 2023-07-26 10:16:04 +0300 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@amazon.com> | 2023-07-28 02:54:10 +0300 |
commit | b075eb535adef656060e19183bf52ddd2e134e29 (patch) | |
tree | 4547ada86ea211951167c2e6a1c215783a899bc0 | |
parent | b1f94b1e9229ffc801e6190775f563f3398ab27a (diff) |
oops, fix linear_init()
-rw-r--r-- | dnn/parse_lpcnet_weights.c | 2 |
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; } |