Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli committed May 15, 2020
1 parent 8779ba5 commit 18dff98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/models/test_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def transfer_batch_to_device(self, batch, device):
batch.targets = batch.targets.to(device)
return batch

model = CurrentTestModel(tutils.get_default_hparams())
model = CurrentTestModel()
batch = CustomBatch((torch.zeros(5, 28), torch.ones(5, 1, dtype=torch.long)))

trainer = Trainer()
Expand Down

0 comments on commit 18dff98

Please sign in to comment.