Skip to content

Commit

Permalink
del ener model precison
Browse files Browse the repository at this point in the history
  • Loading branch information
CaRoLZhangxy committed Feb 28, 2024
1 parent b1ad4bc commit 1fa1afc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions deepmd/pt/model/model/ener_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ def forward(
aparam: Optional[torch.Tensor] = None,
do_atomic_virial: bool = False,
) -> Dict[str, torch.Tensor]:
coord = coord.to(env.GLOBAL_PT_FLOAT_PRECISION)
if box is not None:
box = box.to(env.GLOBAL_PT_FLOAT_PRECISION)
model_ret = self.forward_common(
coord,
atype,
Expand Down

0 comments on commit 1fa1afc

Please sign in to comment.