-
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
on_test_end
is not called in test
#5442
Comments
Hi! thanks for your contribution!, great first issue! |
can you update the notebook permissions? |
done |
I just realised there is no |
What does that mean? How can we get it called at the end of test? |
is there any reason to not include |
I do not think there is a reason, just missed it... |
We should also consider a test for a full hooks life-cycle as done with the callbacks: |
it's there @awaelchli https://github.com/PyTorchLightning/pytorch-lightning/blob/master/tests/models/test_hooks.py |
fixed in #5467 |
🐛 Bug
I'm running a model with
fit
andtest
called. However I noticed thaton_test_end
is not called at the end oftest
.Please reproduce using the BoringModel
https://colab.research.google.com/drive/1j5J8TXAIqoFCqc-3WnAPMox8amNsRDjE?usp=sharing
To Reproduce
Use following BoringModel and post here
See the code addition at the bottom of this cell, which prints when the method is hit.
Then check the output here. Notice how
##### hit on_test_end #####
is missing, whereas##### hit on_train_end #####
is present and just fine.Expected behavior
When running the
trainer.test
step,on_test_end
should be called at the end of test.Environment
See the shared Colab notebook. Below are pasted form the notebook:
The text was updated successfully, but these errors were encountered: