Skip to content

Commit

Permalink
atomic model is not required to provide the fitting net (deepmodeling…
Browse files Browse the repository at this point in the history
…#3184)

Co-authored-by: Han Wang <wang_han@iapcm.ac.cn>
  • Loading branch information
wanghan-iapcm and Han Wang authored Jan 27, 2024
1 parent f4d7c7e commit 2e5333d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
7 changes: 0 additions & 7 deletions deepmd/pt/model/model/atomic_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,9 @@
from deepmd.model_format import (
FittingOutputDef,
)
from deepmd.pt.model.task import (
Fitting,
)


class AtomicModel(ABC):
@abstractmethod
def get_fitting_net(self) -> Fitting:
raise NotImplementedError

@abstractmethod
def get_fitting_output_def(self) -> FittingOutputDef:
raise NotImplementedError
Expand Down
6 changes: 0 additions & 6 deletions deepmd/pt/model/model/dp_atomic_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,6 @@ def __init__(
self.descriptor.dim_out, self.ntypes - 1, self.descriptor.dim_emb
)

def get_fitting_net(self) -> Fitting:
"""Get the fitting net."""
return (
self.fitting_net if self.fitting_net is not None else self.coord_denoise_net
)

def get_fitting_output_def(self) -> FittingOutputDef:
"""Get the output def of the fitting net."""
return (
Expand Down

0 comments on commit 2e5333d

Please sign in to comment.