From 36fdf53f872bfabeb54340f3f8f98911ebdb3154 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Tue, 12 Mar 2024 21:29:05 -0400 Subject: [PATCH] chore: remove unused init_fitting_stat (#3453) See also #3278. Signed-off-by: Jinzhe Zeng --- deepmd/dpmodel/fitting/invar_fitting.py | 4 ---- deepmd/dpmodel/fitting/make_base_fitting.py | 4 ---- 2 files changed, 8 deletions(-) diff --git a/deepmd/dpmodel/fitting/invar_fitting.py b/deepmd/dpmodel/fitting/invar_fitting.py index e795953a75..f7c091843b 100644 --- a/deepmd/dpmodel/fitting/invar_fitting.py +++ b/deepmd/dpmodel/fitting/invar_fitting.py @@ -187,10 +187,6 @@ def compute_output_stats(self, merged): """Update the output bias for fitting net.""" raise NotImplementedError - def init_fitting_stat(self, result_dict): - """Initialize the model bias by the statistics.""" - raise NotImplementedError - def output_def(self): return FittingOutputDef( [ diff --git a/deepmd/dpmodel/fitting/make_base_fitting.py b/deepmd/dpmodel/fitting/make_base_fitting.py index 041076ba89..c7341798c3 100644 --- a/deepmd/dpmodel/fitting/make_base_fitting.py +++ b/deepmd/dpmodel/fitting/make_base_fitting.py @@ -67,10 +67,6 @@ def compute_output_stats(self, merged): """Update the output bias for fitting net.""" raise NotImplementedError - def init_fitting_stat(self, **kwargs): - """Initialize the model bias by the statistics.""" - raise NotImplementedError - @abstractmethod def serialize(self) -> dict: """Serialize the obj to dict."""