From cacbfb6d4127b023471cb27b77353a436fda00df Mon Sep 17 00:00:00 2001 From: anyangml Date: Fri, 8 Mar 2024 05:32:57 +0000 Subject: [PATCH] chore: bump version --- deepmd/dpmodel/fitting/polarizability_fitting.py | 1 + deepmd/pt/model/task/polarizability.py | 1 + 2 files changed, 2 insertions(+) diff --git a/deepmd/dpmodel/fitting/polarizability_fitting.py b/deepmd/dpmodel/fitting/polarizability_fitting.py index 9fb8bee796..4ddc0b387d 100644 --- a/deepmd/dpmodel/fitting/polarizability_fitting.py +++ b/deepmd/dpmodel/fitting/polarizability_fitting.py @@ -172,6 +172,7 @@ def _net_out_dim(self): def serialize(self) -> dict: data = super().serialize() data["type"] = "polar" + data["@version"] = 2 data["embedding_width"] = self.embedding_width data["old_impl"] = self.old_impl data["fit_diag"] = self.fit_diag diff --git a/deepmd/pt/model/task/polarizability.py b/deepmd/pt/model/task/polarizability.py index 5a81789284..5f2a902d3b 100644 --- a/deepmd/pt/model/task/polarizability.py +++ b/deepmd/pt/model/task/polarizability.py @@ -151,6 +151,7 @@ def _net_out_dim(self): def serialize(self) -> dict: data = super().serialize() data["type"] = "polar" + data["@version"] = 2 data["embedding_width"] = self.embedding_width data["old_impl"] = self.old_impl data["fit_diag"] = self.fit_diag