Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion deepmd/dpmodel/descriptor/repflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,10 @@ def call(
)
nb, nloc, nnei = nlist.shape
nall = node_ebd_ext.shape[1]
n_edge = int(xp.sum(xp.astype(nlist_mask, xp.int32)))
# int cannot jit; do not run it when self.use_dynamic_sel == False
n_edge = (
int(xp.sum(xp.astype(nlist_mask, xp.int32))) if self.use_dynamic_sel else 0
)
node_ebd = node_ebd_ext[:, :nloc, :]
assert (nb, nloc) == node_ebd.shape[:2]
if not self.use_dynamic_sel:
Expand Down