Skip to content

Commit

Permalink
bugfix for foldingnet
Browse files Browse the repository at this point in the history
foldingnet can now be correctly used with more than 2D latent space
  • Loading branch information
DEGIACOMI committed Feb 23, 2024
1 parent 96bf989 commit 4e6b640
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/molearn/models/foldingnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def forward(self, x):
'''
x: (B, C)
'''
x = x.view(-1, 2, 1)
x = x.view(-1, self.latent_dimension, 1)
x = self.layer1(x)
x = self.layer2(x)
x = self.layer3(x)
Expand Down
2 changes: 1 addition & 1 deletion src/molearn/models/small_foldingnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def forward(self, x):
'''
x: (B, C)
'''
x = x.view(-1, 2, 1)
x = x.view(-1, self.latent_dimension, 1)
x = self.layer1(x)
x = self.layer2(x)
x = self.layer3(x)
Expand Down

0 comments on commit 4e6b640

Please sign in to comment.