diff --git a/deepmd/model_format/atomic_model.py b/deepmd/model_format/atomic_model.py index cdc08fe1f6..f1245d8bd4 100644 --- a/deepmd/model_format/atomic_model.py +++ b/deepmd/model_format/atomic_model.py @@ -21,19 +21,19 @@ class BAM(ABC): @abstractmethod def get_fitting_output_def(self) -> FittingOutputDef: - raise NotImplementedError + pass @abstractmethod def get_rcut(self) -> float: - raise NotImplementedError + pass @abstractmethod def get_sel(self) -> List[int]: - raise NotImplementedError + pass @abstractmethod def distinguish_types(self) -> bool: - raise NotImplementedError + pass @abstractmethod def forward_atomic( @@ -45,14 +45,14 @@ def forward_atomic( fparam: Optional[T_Tensor] = None, aparam: Optional[T_Tensor] = None, ) -> Dict[str, T_Tensor]: - raise NotImplementedError + pass @abstractmethod def serialize(self) -> dict: - raise NotImplementedError + pass @abstractclassmethod def deserialize(cls): - raise NotImplementedError + pass return BAM