Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic support for logging warnings #22

Closed
wants to merge 1 commit into from
Closed

basic support for logging warnings #22

wants to merge 1 commit into from

Conversation

amandlek
Copy link
Member

  • adding functions log_warning and flush_warnings to utils/log_utils.py, allowing us to log warnings (in yellow text by default) at the start of training, and cache them so that they are displayed once again right before training starts, so that they appear all together in a convenient location that's easy to check while debugging
  • to leverage, call log_warning with the warning message, and optionally specify the text color (default is "yellow"), and whether you want to print the warning immediately (in addition to printing later when flush_warnings is called)

snasiriany pushed a commit that referenced this pull request Jun 15, 2023
@amandlek
Copy link
Member Author

amandlek commented Jul 4, 2023

Functionality has been integrated into v0.3 release.

@amandlek amandlek closed this Jul 4, 2023
@amandlek amandlek deleted the log_warning branch July 6, 2023 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant