diff --git a/deepmd/dpmodel/descriptor/se_atten_v2.py b/deepmd/dpmodel/descriptor/se_atten_v2.py index 8044e10eca..1375d2265f 100644 --- a/deepmd/dpmodel/descriptor/se_atten_v2.py +++ b/deepmd/dpmodel/descriptor/se_atten_v2.py @@ -155,7 +155,7 @@ def serialize(self) -> dict: return data @classmethod - def deserialize(cls, data: dict) -> "DescrptDPA1": + def deserialize(cls, data: dict) -> "DescrptSeAttenV2": """Deserialize from dict.""" data = data.copy() check_version_compatibility(data.pop("@version"), 1, 1)