Skip to content

Commit cbaf7fd

Browse files
committed
remove duplicated statements
1 parent 93e6851 commit cbaf7fd

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

deepmd/pt/model/descriptor/repflows.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,6 @@ def forward(
377377
mapping: Optional[torch.Tensor] = None,
378378
comm_dict: Optional[dict[str, torch.Tensor]] = None,
379379
):
380-
if comm_dict is None:
381-
assert mapping is not None
382380
nframes, nloc, nnei = nlist.shape
383381
nall = extended_coord.view(nframes, -1).shape[1] // 3
384382
atype = extended_atype[:, :nloc]

0 commit comments

Comments
 (0)