Skip to content

Commit

Permalink
Fix callback typing.
Browse files Browse the repository at this point in the history
  • Loading branch information
zerogerc committed Aug 7, 2020
1 parent c93d8c8 commit f9f762e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/trainer/test_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def on_batch_start(self, trainer, pl_module):
if self.snapshot_method == 'on_batch_start':
self.trainer_state = trainer.state

def on_test_batch_start(self, trainer, pl_module):
def on_test_batch_start(self, trainer, pl_module, batch, batch_idx, dataloader_idx):
if self.snapshot_method == 'on_test_batch_start':
self.trainer_state = trainer.state

Expand Down

0 comments on commit f9f762e

Please sign in to comment.