Skip to content

Commit 9ebccd4

Browse files
committed
reshape non-atomic
1 parent 0c87625 commit 9ebccd4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

deepmd/utils/data.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,8 @@ def _load_single_data(
905905
# data should be 2D here: [natoms, ndof]
906906
data = data.reshape([natoms, -1])
907907
data = data[idx_map, :]
908+
else:
909+
data = data.reshape([ndof])
908910

909911
# Atomic: return [natoms, ndof] or flattened hessian above
910912
# Non-atomic: return [ndof]

0 commit comments

Comments
 (0)