Skip to content

Commit

Permalink
Merge branch 'split-model-atomic-model' of https://github.com/njzjz/d…
Browse files Browse the repository at this point in the history
…eepmd-kit into split-model-atomic-model
  • Loading branch information
njzjz committed Mar 9, 2024
2 parents 8f6614c + e22bc64 commit ed831c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deepmd/dpmodel/model/make_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
BaseModel,
)
from deepmd.dpmodel.output_def import (
FittingOutputDef,
ModelOutputDef,
OutputVariableCategory,
OutputVariableOperation,
Expand Down Expand Up @@ -470,4 +471,8 @@ def mixed_types(self) -> bool:
"""
return self.atomic_model.mixed_types()

def atomic_output_def(self) -> FittingOutputDef:
"""Get the output def of the atomic model."""
return self.atomic_model.atomic_output_def()

return CM

0 comments on commit ed831c8

Please sign in to comment.