Skip to content

Commit

Permalink
fix mask dtype
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Nov 12, 2024
1 parent 201cf80 commit 638acc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/dpmodel/atomic_model/base_atomic_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def forward_common_atomic(
tmp_arr = ret_dict[kk].reshape([out_shape[0], out_shape[1], out_shape2])
tmp_arr = xp.where(atom_mask[:, :, None], tmp_arr, xp.zeros_like(tmp_arr))
ret_dict[kk] = xp.reshape(tmp_arr, out_shape)
ret_dict["mask"] = atom_mask
ret_dict["mask"] = xp.astype(atom_mask, xp.int32)

return ret_dict

Expand Down

0 comments on commit 638acc2

Please sign in to comment.