From 5fa22e3eec3b0f1575bf6bf35a6babf1d70adeba Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Tue, 12 Mar 2024 14:40:06 -0400 Subject: [PATCH] remove unused init_fitting_stat 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."""