|
|
|
@@ -105,7 +105,7 @@ Status FileSaver::SaveWithFileHeader(const std::string &file_path, const ModelFi |
|
|
|
// Close file |
|
|
|
auto ret_close = mmClose(fd); |
|
|
|
if (ret_close != EN_OK) { |
|
|
|
GELOGE(FAILED, "Close file failed. mmpa_errorno = %ld, %s", ret_close, strerror(errno)); |
|
|
|
GELOGE(FAILED, "Close file failed. mmpa_errorno = %d, %s", ret_close, strerror(errno)); |
|
|
|
return FAILED; |
|
|
|
} |
|
|
|
return ret; |
|
|
|
@@ -143,7 +143,7 @@ Status FileSaver::SaveWithFileHeader(const std::string &file_path, const ModelFi |
|
|
|
// Close file |
|
|
|
auto ret_close = mmClose(fd); |
|
|
|
if (ret_close != EN_OK) { |
|
|
|
GELOGE(FAILED, "Close file failed. mmpa_errorno = %ld, %s", ret_close, strerror(errno)); |
|
|
|
GELOGE(FAILED, "Close file failed. mmpa_errorno = %d, %s", ret_close, strerror(errno)); |
|
|
|
return FAILED; |
|
|
|
} |
|
|
|
return ret; |
|
|
|
@@ -320,7 +320,7 @@ Status FileSaver::SaveWithFileHeader(const std::string &file_path, const ModelFi |
|
|
|
// Close file |
|
|
|
auto ret_close = mmClose(fd); |
|
|
|
if (ret_close != EN_OK) { |
|
|
|
GELOGE(FAILED, "Close file failed. mmpa_errorno = %ld, %s", ret_close, strerror(errno)); |
|
|
|
GELOGE(FAILED, "Close file failed. mmpa_errorno = %d, %s", ret_close, strerror(errno)); |
|
|
|
return FAILED; |
|
|
|
} |
|
|
|
return ret; |
|
|
|
@@ -345,7 +345,7 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status FileSaver::SaveToFile(co |
|
|
|
// Close file |
|
|
|
auto ret_close = mmClose(fd); |
|
|
|
if (ret_close != EN_OK) { |
|
|
|
GELOGE(FAILED, "Close file failed. mmpa_errorno = %ld, %s", ret_close, strerror(errno)); |
|
|
|
GELOGE(FAILED, "Close file failed. mmpa_errorno = %d, %s", ret_close, strerror(errno)); |
|
|
|
return FAILED; |
|
|
|
} |
|
|
|
return ret; |
|
|
|
|