Skip to content

Commit

Permalink
refactor: use long instead of int
Browse files Browse the repository at this point in the history
  • Loading branch information
melo-gonzo committed Jul 15, 2024
1 parent 35e44e9 commit 8e11437
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions matsciml/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,7 @@ def read_batch(self, batch: BatchDict) -> DataDict:
sizes.append(len(dst_nodes))
# carve out neighborhoods as dictated by the dataset/transform definition
sample_pc_pos = (
sample[src_nodes.to(int)][None, :]
- sample[dst_nodes.to(int).to(int)][:, None]
sample[src_nodes.long()][None, :] - sample[dst_nodes.long()][:, None]
)
pc_pos.append(sample_pc_pos)
# pad the position result
Expand Down

0 comments on commit 8e11437

Please sign in to comment.