Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulPPelaez committed Feb 13, 2024
1 parent fc3bb6b commit 907a614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchmdnet/priors/atomref.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self, max_z=None, dataset=None, trainable=False, enable=True):
if atomref.ndim == 1:
atomref = atomref.view(-1, 1)
self.register_buffer("initial_atomref", atomref)
self.atomref = nn.Embedding(len(atomref), 1, freeze=trainable and not enable)
self.atomref = nn.Embedding(len(atomref), 1, _freeze=trainable and not enable)
self.atomref.weight.data.copy_(atomref)
self.enable = enable

Expand Down

0 comments on commit 907a614

Please sign in to comment.