Skip to content

Commit

Permalink
fix test_optim
Browse files Browse the repository at this point in the history
  • Loading branch information
gcroci2 committed Oct 20, 2023
1 parent a094e2f commit a6209cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def test_optim(self):
dataset_test=dataset,
pretrained_model=self.save_path)

assert isinstance(trainer_pretrained.optimizer, optimizer)
assert str(type(trainer_pretrained.optimizer)) == "<class 'torch.optim.adamax.Adamax'>"
assert trainer_pretrained.lr == lr
assert trainer_pretrained.weight_decay == weight_decay

Expand Down

0 comments on commit a6209cb

Please sign in to comment.