We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 340d23c commit f762d9fCopy full SHA for f762d9f
trainer.py
@@ -43,11 +43,10 @@ def __init__(
43
self._init_amp()
44
self._save_hparams()
45
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)
+ if hasattr(self.args, "autoencoder_checkpoint_path"):
+ self.autoencoder = get_autoencoder(self.args.autoencoder_checkpoint_path).to(self.device)
+ else:
+ self.autoencoder = None
51
52
self.train_state = dict()
53
0 commit comments