Skip to content

Commit

Permalink
revert dtype change for pytorch
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed Sep 11, 2024
1 parent cc1f833 commit d628068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chgnet/model/composition_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def fit(
if isinstance(structure, Structure):
atomic_number = torch.tensor(
[site.specie.Z for site in structure],
dtype=np.int64,
dtype=int,
requires_grad=False,
)
else:
Expand Down

0 comments on commit d628068

Please sign in to comment.