!18528 bugfix ImageClassificationRunner manifest.json has no content

Merge pull request !18528 from TonyNG/bugfix/master_xai_manifest
This commit is contained in:
i-robot 2021-06-22 02:17:58 +00:00 committed by Gitee
commit 45902803b2
1 changed files with 1 additions and 0 deletions

View File

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