forked from huawei/mindspore2022
!18528 bugfix ImageClassificationRunner manifest.json has no content
Merge pull request !18528 from TonyNG/bugfix/master_xai_manifest
This commit is contained in:
commit
45902803b2
|
|
@ -998,6 +998,7 @@ class ImageClassificationRunner(_Verifier):
|
|||
log.error(f"Failed to save manifest as {save_path}!")
|
||||
raise
|
||||
finally:
|
||||
file.flush()
|
||||
os.close(fd)
|
||||
os.chmod(save_path, self._FILE_MODE)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue