Skip to content

Commit f762d9f

Browse files
author
Alejandro Monroy Muñoz
committed
Fig bug in autoencoder construction
1 parent 340d23c commit f762d9f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

trainer.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@ def __init__(
4343
self._init_amp()
4444
self._save_hparams()
4545

46-
self.autoencoder = (
47-
get_autoencoder(self.args.autoencoder_checkpoint_path)
48-
if hasattr(self.args, "autoencoder_checkpoint_path")
49-
else None
50-
).to(self.device)
46+
if hasattr(self.args, "autoencoder_checkpoint_path"):
47+
self.autoencoder = get_autoencoder(self.args.autoencoder_checkpoint_path).to(self.device)
48+
else:
49+
self.autoencoder = None
5150

5251
self.train_state = dict()
5352

0 commit comments

Comments
 (0)