Skip to content

Commit c84f9e5

Browse files
author
liwentao
committed
fix(pt): preserve energy forward charge-spin ABI
1 parent 8bb2559 commit c84f9e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deepmd/pt/model/model/ener_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ def forward(
7272
fparam: torch.Tensor | None = None,
7373
aparam: torch.Tensor | None = None,
7474
do_atomic_virial: bool = False,
75-
mixed_batch: dict[str, torch.Tensor] | None = None,
7675
charge_spin: torch.Tensor | None = None,
76+
mixed_batch: dict[str, torch.Tensor] | None = None,
7777
) -> dict[str, torch.Tensor]:
7878
if not torch.jit.is_scripting() and mixed_batch is not None:
7979
model_ret = self.forward_common_flat(

0 commit comments

Comments
 (0)