Skip to content

Commit

Permalink
Fix AutoEncoder calling pre/postprocessing during training
Browse files Browse the repository at this point in the history
  • Loading branch information
andrrizzi authored May 23, 2023
1 parent 98a5dcf commit 6b21e3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mlcolvar/cvs/unsupervised/autoencoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def forward_cv(self, x: torch.Tensor) -> (torch.Tensor):
return x

def encode_decode(self, x: torch.Tensor) -> (torch.Tensor):
x = self.forward(x)
x = self.forward_cv(x)
x = self.decoder(x)
if self.norm_in is not None:
x = self.norm_in.inverse(x)
Expand Down Expand Up @@ -161,4 +161,4 @@ def test_autoencodercv():
trainer.fit( model, datamodule )

if __name__ == "__main__":
test_autoencodercv()
test_autoencodercv()

0 comments on commit 6b21e3e

Please sign in to comment.