Skip to content

Commit

Permalink
Set dtype and device in trapzd (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinfriede authored Jan 5, 2025
1 parent 2215589 commit a1e1a3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tad_dftd4/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,9 @@ def trapzd(polarizability: Tensor) -> Tensor:
1.7500000000000000,
2.5000000000000000,
1.2500000000000000,
]
],
device=polarizability.device,
dtype=polarizability.dtype,
)

# NOTE: In the old version, a memory inefficient intermediate tensor was
Expand Down

0 comments on commit a1e1a3b

Please sign in to comment.