Skip to content

Commit

Permalink
fix jit error
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Jan 25, 2024
1 parent 0bbe17d commit 6cb4b6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd_pt/utils/region.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def to_face_distance(
"""
cshape = cell.shape
dist = b_to_face_distance(cell.view([-1, 3, 3]))
return dist.view([*list(cshape[:-2]), 3])
return dist.view(list(cshape[:-2]) + [3]) # noqa:RUF005


def _to_face_distance(cell):
Expand Down

0 comments on commit 6cb4b6c

Please sign in to comment.