Skip to content

Commit

Permalink
fix reshape
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
  • Loading branch information
njzjz committed Nov 21, 2024
1 parent 6ec5f6f commit b1ae8bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/dpmodel/descriptor/se_t_tebd.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ def call(
assert type_embedding is not None
ntypes_with_padding = type_embedding.shape[0]
# nf x (nl x nnei)
nlist_index = nlist_masked.reshape(nf, nloc * nnei)
nlist_index = xp.reshape(nlist_masked, (nf, nloc * nnei))
# nf x (nl x nnei)
nei_type = xp_take_along_axis(atype_ext, nlist_index, axis=1)
# nfnl x nnei
Expand Down

0 comments on commit b1ae8bc

Please sign in to comment.