-
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
What are the outputs
in the on_train_batch_end
callback?
#4689
Comments
Hi! thanks for your contribution!, great first issue! |
#4369 will fix it. |
I have a similar issue where I'm trying to make a callback for logging many of the same metrics across different modules. However, #4369 doesn't fix it when applying it to the stable 1.0.6 branch or master branch. Even when the module has The dict being wrong seems to be how the training step output gets processed in Unless I applied #4369 wrong, but it's a pretty simple set of commits that don't seem to fix this issue. |
This issue has been automatically marked as stale because it hasn't had any recent activity. This issue will be closed in 7 days if no further activity occurs. Thank you for your contributions, Pytorch Lightning Team! |
Any updates on this issue? I use PL 1.1.2 and this issue still persists. Please fix! |
I am seeing the same issue! Though |
I am seeing the same issue and found comments when tracking code stack. So just try adding an empty |
❓ Questions and Help
Before asking:
What is your question?
For my application, I need to save the raw outputs of the model to disk for every training and validation example. I think a callback is the right thing to use for this-- PL already has hooks in "on_train_batch_end". According to the latest docs, this method takes an
outputs
arg, which I presume to be the outputs of the pl_module, or the value returned by thetraining_step
function. However, no matter what I change in thetraining_step
,outputs
is always an empty list. Likewise, theoutputs
inon_train_epoch_end
is an empty list of lists.Here are the relevant portions of my Lightning Module:
Results:
Where are train outputs defined?
Possibly related issues:
#3864
#3592
#4609
What's your environment?
The text was updated successfully, but these errors were encountered: