Skip to content

Commit

Permalink
make dtype same as input x to avoid auto floating promotion
Browse files Browse the repository at this point in the history
  • Loading branch information
HydrogenSulfate committed Dec 22, 2024
1 parent c24498b commit 61e05e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/pd/utils/region.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,5 @@ def normalize_coord(
"""
icoord = phys2inter(coord, cell)
icoord = paddle.remainder(icoord, paddle.full([], 1.0))
icoord = paddle.remainder(icoord, paddle.full([], 1.0, dtype=icoord.dtype))
return inter2phys(icoord, cell)

0 comments on commit 61e05e2

Please sign in to comment.