-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Trainer.test() does not allow to save logs #1859
Comments
Because of the way aggregate_metrics is implemented, logs are only produced when we are leaving the current step. Because there is only one step in testing, the logs are stored in |
@ justusschock any ideas? |
Btw, I was able to log my logs by adding |
@Varal7 would you be able to send a PR with the fix? |
results = trainer.test() results is a dict with the results |
if you encounter no logging on end of epoch it may be because you are using
|
🐛 Bug
When we use trainer.test() on a fresh trainer, the call to
self.log_metrics(log_metrics, {}, step)
fails to produce logs.To Reproduce
Steps to reproduce the behavior:
Code sample
Expected behavior
Metrics are logged.
The text was updated successfully, but these errors were encountered: