Skip to content

Commit

Permalink
Merge pull request #72 from sony/feature/20220530-fix-concatnate-cras…
Browse files Browse the repository at this point in the history
…h-bug

fix crash for coding error in concatenate
  • Loading branch information
YukioOobuchi authored Jul 13, 2022
2 parents 3340d95 + 48ae89f commit 85a294c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/implements/array/concatenate.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ rt_function_error_t exec_concatenate_generic(rt_function_t *f) {
for (int i = 0; i < f->num_of_inputs; i++) {
rt_variable_t *input = f->inputs[i];
rt_variable_getter get_input = select_getter(input);
const int inner_size = calc_size(p->in_shape[i], c->axis);
const int inner_size = calc_size(f->inputs[i]->shape, c->axis);
for (int j = 0; j < p->outer_size; ++j) {
for (int k = 0; k < inner_size; k++) {
const float x = get_input(input, j * inner_size + k);
Expand Down

0 comments on commit 85a294c

Please sign in to comment.