forked from mindspore-Ecosystem/mindspore
!14061 [lite]fix fill infer bug
From: @xu_anyue Reviewed-by: @hangangqiang,@HilbertDavid Signed-off-by: @hangangqiang
This commit is contained in:
commit
b141cb879c
0
mindspore/lite/micro/example/mnist_stm32f746/mnist_stm32f746/benchmark/load_input.c
Executable file → Normal file
0
mindspore/lite/micro/example/mnist_stm32f746/mnist_stm32f746/benchmark/load_input.c
Executable file → Normal file
0
mindspore/lite/micro/example/mnist_stm32f746/mnist_stm32f746/benchmark/load_input.h
Executable file → Normal file
0
mindspore/lite/micro/example/mnist_stm32f746/mnist_stm32f746/benchmark/load_input.h
Executable file → Normal file
|
@ -38,7 +38,9 @@ int FillInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC **o
|
|||
if (!parameter->infer_flag_) {
|
||||
return NNACL_INFER_INVALID;
|
||||
}
|
||||
|
||||
if (num_dims != 0 && dst_shape == NULL) {
|
||||
return NNACL_INFER_INVALID;
|
||||
}
|
||||
int output_shape[MAX_SHAPE_SIZE];
|
||||
size_t output_shape_size = 0;
|
||||
for (size_t i = 0; i < num_dims; i++) {
|
||||
|
|
Loading…
Reference in New Issue