forked from mindspore-Ecosystem/mindspore
fix read input issue
This commit is contained in:
parent
449c4ba00e
commit
2b4c99ca85
|
@ -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…
Reference in New Issue