Browse Source

!15336 fix read input issue

From: @zhujingxuan
Reviewed-by: @hangangqiang,@wangchengyuan
Signed-off-by: @hangangqiang
pull/15336/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
2fb63c6491
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/lite/micro/coder/generator/component/const_blocks/load_input.cc

+ 1
- 1
mindspore/lite/micro/coder/generator/component/const_blocks/load_input.cc View File

@@ -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;


Loading…
Cancel
Save