Skip to content

Commit

Permalink
Move data to CUDA before indexing (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinfriede authored Jun 6, 2024
1 parent 4f996e8 commit b5fc0c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tad_dftd4/damping/atm.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def get_atm_dispersion(
torch.abs(c6.unsqueeze(-1) * c6.unsqueeze(-2) * c6.unsqueeze(-3)),
)

rad = data.R4R2[numbers]
rad = data.R4R2.to(**dd)[numbers]
radii = rad.unsqueeze(-1) * rad.unsqueeze(-2)
temp = a1 * storch.sqrt(3.0 * radii) + a2

Expand Down

0 comments on commit b5fc0c7

Please sign in to comment.