Skip to content

Commit

Permalink
DeepGraphLearning#236 Issue in atom2valence Solved
Browse files Browse the repository at this point in the history
  • Loading branch information
Shashank1202 committed Aug 22, 2024
1 parent 6066fbd commit 9ca9ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchdrug/data/molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def is_valid(self):
"""A coarse implementation of valence check."""
# TODO: cross-check by any domain expert
atom2valence = torch.tensor(float("nan")).repeat(constant.NUM_ATOM)
for k, v in self.atom2valence:
for k, v in self.atom2valence.items():
atom2valence[k] = v
atom2valence = torch.as_tensor(atom2valence, device=self.device)

Expand Down

0 comments on commit 9ca9ba1

Please sign in to comment.