Skip to content

Commit b0096e0

Browse files
author
Han Wang
committed
fix(pt2): relax nnei dynamic shape lower bound from 2 to 1
1 parent 12ad03b commit b0096e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deepmd/pt_expt/utils/serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def _build_dynamic_shapes(
206206
nframes_dim = torch.export.Dim("nframes", min=1)
207207
nall_dim = torch.export.Dim("nall", min=1)
208208
nloc_dim = torch.export.Dim("nloc", min=1)
209-
nnei_dim = torch.export.Dim("nnei", min=max(2, model_nnei))
209+
nnei_dim = torch.export.Dim("nnei", min=max(1, model_nnei))
210210

211211
if has_spin:
212212
# (ext_coord, ext_atype, ext_spin, nlist, mapping, fparam, aparam)

0 commit comments

Comments
 (0)