on_train_epoch_end how to get current batch?? #13010
Unanswered
ZENGYIMING-EAMON
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 2 comments 8 replies
-
Are you looking for on_train_batch_end(self, outputs, batch, batch_idx) ? |
Beta Was this translation helpful? Give feedback.
5 replies
-
Not sure about def on_train_batch_end(self, outputs, batch, batch_idx: int, unused: int = 0) -> None
if batch_idx == 0:
# do something for first batch |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
on_train_epoch_end how to get the current batch on Cuda device ??
Beta Was this translation helpful? Give feedback.
All reactions