Browse Source

fix read input issue

pull/15336/head
zhujingxuan 4 years ago
parent
commit
2b4c99ca85
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")) { if (strstr(real_input_path, ".bin") || strstr(real_input_path, ".net")) {
FILE *file; FILE *file;
file = fopen(real_input_path, "rb+");
file = fopen(real_input_path, "rb");
if (!file) { if (!file) {
printf("Can't find %s\n", real_input_path); printf("Can't find %s\n", real_input_path);
return NULL; return NULL;


Loading…
Cancel
Save