Commit c06c0394 authored by Ananth Subramaniam's avatar Ananth Subramaniam Committed by Facebook GitHub Bot
Browse files

Update on_train_batch_end signature in preparation for Lightning 1.7 breaking changes

Reviewed By: wat3rBro

Differential Revision: D34813614

fbshipit-source-id: e062cf5e1cbee09bb1970a21d21bc4132aec0890
parent 744d72d7
......@@ -425,7 +425,7 @@ class DefaultTask(pl.LightningModule):
device=self.cfg.MODEL_EMA.DEVICE or self.cfg.MODEL.DEVICE,
)
def on_train_batch_end(self, outputs, batch, batch_idx, dataloader_idx) -> None:
def on_train_batch_end(self, *_) -> None:
if self.ema_state:
self.ema_state.update(self.model)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment