Skip to content

Commit

Permalink
Redefined inverse method of Inverse wrapper class
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoTrizio committed Apr 4, 2024
1 parent d7d8c8b commit 551ad2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mlcolvar/core/transform/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ def __init__(self, module: torch.nn.Module):
self.module = module

def inverse(self, *args, **kwargs):
return self.module.inverse(*args, **kwargs)
return self.module(*args, **kwargs)

def forward(self, *args, **kwargs):
return self.inverse(*args, **kwargs)
return self.module.inverse(*args, **kwargs)



Expand Down

0 comments on commit 551ad2e

Please sign in to comment.