-
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
Output from validation_step_end
not propagated to on_validation_batch_end
#9608
Comments
The problem with this bug is that I was using |
|
The problem is that we check If you had: def validation_step_end(self, *args, **kwargs):
return "something_that_is_not_None" Then you'll see it working properly. Can you elaborate on why you need to return |
I can return something else, but I was afraid that the GPU´s memory would fill up, so I was thinking that returning It is true that during Because of what you describe it looks like a hard fix, doesn't it? It would not be easy to discriminate when |
Shouldn't be a problem, these resources should get freed when they will no longer be used.
That's right.
Whatever fits you! Closing for now, feel free to keep discussing 👍 |
No, the proposed solution of filtering the output worked in my run. Thanks for your help! |
🐛 Bug
Output from
validation_step_end
not propagated toon_validation_batch_end
; rather it receives fromvalidation_step
. Same happens for the test counterpart.The documentation states
outputs (Union[Tensor, Dict[str, Any], None]) – The outputs of validation_step_end(validation_step(x))
, but it is not set like that.To Reproduce
MWE with boring model: https://colab.research.google.com/drive/1xIq7dj6aY6ZPSEPlBF0dPGI87wwkLepL?usp=sharing
Expected behavior
The output should be that from
validation_step_end
, not fromvalidation_step
.Environment
The text was updated successfully, but these errors were encountered: