Skip to content

Commit

Permalink
Update deepmd/dpmodel/fitting/general_fitting.py
Browse files Browse the repository at this point in the history
Co-authored-by: Han Wang <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz and wanghan-iapcm authored Nov 13, 2024
1 parent 41d80b9 commit 30d33b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/dpmodel/fitting/general_fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,4 +457,4 @@ def _call_common(
exclude_mask = self.emask.build_type_exclude_mask(atype)
# nf x nloc x nod
outs = xp.where(exclude_mask[:, :, None], outs, xp.zeros_like(outs))
return {self.var_name: xp.astype(outs, descriptor.dtype)}
return {self.var_name: outs)}

0 comments on commit 30d33b7

Please sign in to comment.