Skip to content

Commit

Permalink
Changed edge indices to LongTensor
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav S Deshmukh committed Sep 15, 2023
1 parent 9bd23b1 commit 32466b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/featurizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ def featurize_graph(self, atoms_graph):
self._feat_tensor = self.encoder.transform(bond_dist_arr)

# Create list of edge indices
self._edge_indices = torch.Tensor(list(atoms_graph.graph.edges())).view(2, -1)
self._edge_indices = torch.LongTensor(list(atoms_graph.graph.edges())).view(2, -1)

@property
def feat_tensor(self):
Expand Down

0 comments on commit 32466b7

Please sign in to comment.