From 2b4c99ca85ebc823c7b98e031837181a9063f6fa Mon Sep 17 00:00:00 2001 From: zhujingxuan Date: Sat, 17 Apr 2021 16:59:42 +0800 Subject: [PATCH] fix read input issue --- .../micro/coder/generator/component/const_blocks/load_input.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/lite/micro/coder/generator/component/const_blocks/load_input.cc b/mindspore/lite/micro/coder/generator/component/const_blocks/load_input.cc index f8ac55a133..97831a246e 100644 --- a/mindspore/lite/micro/coder/generator/component/const_blocks/load_input.cc +++ b/mindspore/lite/micro/coder/generator/component/const_blocks/load_input.cc @@ -84,7 +84,7 @@ void *ReadInputData(const char *real_input_path, int *size) { } if (strstr(real_input_path, ".bin") || strstr(real_input_path, ".net")) { FILE *file; - file = fopen(real_input_path, "rb+"); + file = fopen(real_input_path, "rb"); if (!file) { printf("Can't find %s\n", real_input_path); return NULL;