Skip to content

Commit

Permalink
append to file (#9483)
Browse files Browse the repository at this point in the history
Co-authored-by: Malay Nagda <[email protected]>
Co-authored-by: Somshubra Majumdar <[email protected]>
  • Loading branch information
3 people committed Jun 18, 2024
1 parent f99cae7 commit 501f0df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nemo/utils/exp_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ def exp_manager(trainer: 'pytorch_lightning.Trainer', cfg: Optional[Union[DictCo
# Try to get git hash
git_repo, git_hash = get_git_hash()
if git_repo:
with open(log_dir / 'git-info.log', 'w', encoding='utf-8') as _file:
with open(log_dir / 'git-info.log', 'a', encoding='utf-8') as _file:
_file.write(f'commit hash: {git_hash}')
_file.write(get_git_diff())

Expand Down

0 comments on commit 501f0df

Please sign in to comment.