Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Han Wang committed Mar 2, 2024
1 parent 17d7128 commit 4d21d0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions deepmd/dpmodel/atomic_model/base_atomic_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,16 @@ def atomic_output_def(self) -> FittingOutputDef:
else:
old_list = list(old_def.get_data().values())
return FittingOutputDef(
old_list.append(
old_list # noqa:RUF005
+ [
OutputVariableDef(
name="mask",
shape=[1],
reduciable=False,
r_differentiable=False,
c_differentiable=False,
)
)
]
)

def forward_common_atomic(
Expand Down
5 changes: 3 additions & 2 deletions deepmd/pt/model/atomic_model/base_atomic_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,16 @@ def atomic_output_def(self) -> FittingOutputDef:
else:
old_list = list(old_def.get_data().values())
return FittingOutputDef(
old_list.append(
old_list # noqa:RUF005
+ [
OutputVariableDef(
name="mask",
shape=[1],
reduciable=False,
r_differentiable=False,
c_differentiable=False,
)
)
]
)

def forward_common_atomic(
Expand Down

0 comments on commit 4d21d0d

Please sign in to comment.