Skip to content

Commit

Permalink
Fix loading MNISTLitModule from ckpt (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleve authored Dec 17, 2022
1 parent 28386d6 commit 75b44ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/mnist_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(

# this line allows to access init params with 'self.hparams' attribute
# also ensures init params will be stored in ckpt
self.save_hyperparameters(logger=False, ignore=["net"])
self.save_hyperparameters(logger=False)

self.net = net

Expand Down

0 comments on commit 75b44ff

Please sign in to comment.