Skip to content

Commit db26f5e

Browse files
fix(pd): update dp_atomic_model to call descriptor forward with charge_spin keyword
Co-authored-by: HydrogenSulfate <23737287+HydrogenSulfate@users.noreply.github.com>
1 parent 0e792ac commit db26f5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deepmd/pd/model/atomic_model/dp_atomic_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def forward_atomic(
332332
nlist,
333333
mapping=mapping,
334334
comm_dict=comm_dict,
335-
fparam=fparam if self.add_chg_spin_ebd else None,
335+
charge_spin=fparam if self.add_chg_spin_ebd else None,
336336
)
337337
assert descriptor is not None
338338
if self.enable_eval_descriptor_hook:

0 commit comments

Comments
 (0)