Skip to content

Commit

Permalink
make sure we flush printing the exception
Browse files Browse the repository at this point in the history
  • Loading branch information
vanbasten23 committed Feb 5, 2024
1 parent c95e362 commit b82e7c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_xla/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def _prepare_to_exit():
if int(os.environ.get('PT_XLA_DEBUG', '0')):
_summarize_fn_tracker()
except Exception as e:
print('Caught an exception in the atexit callback: ', e)
print('Caught an exception in the atexit callback: ', e, flush=True)
os._exit(1)


Expand Down

0 comments on commit b82e7c5

Please sign in to comment.