Skip to content

Commit 0ca9ba7

Browse files
committed
cancel modification in deepdos.py
1 parent aa8baa1 commit 0ca9ba7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deepmd/infer/deep_dos.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -411,13 +411,13 @@ def _eval_inner(
411411
# reverse map of the outputs
412412
if atomic:
413413
atom_dos = self.reverse_map(
414-
atom_dos, # 输入形状已经是 [nframes, natoms, numb_dos]
415-
imap
414+
np.reshape(atom_dos, [nframes, -1, self.numb_dos]), imap
416415
)
417416
dos = np.sum(atom_dos, axis=1)
418417

419418
dos = np.reshape(dos, [nframes, self.numb_dos])
420419
if atomic:
420+
atom_dos = np.reshape(atom_dos, [nframes, natoms, self.numb_dos])
421421
return dos, atom_dos
422422
else:
423423
return dos

0 commit comments

Comments
 (0)