diff --git a/deepmd/pt/optimizer/LKF.py b/deepmd/pt/optimizer/LKF.py index 069dcea1fc..2dc934263c 100644 --- a/deepmd/pt/optimizer/LKF.py +++ b/deepmd/pt/optimizer/LKF.py @@ -32,13 +32,13 @@ def __init__( kalman_nue=0.9987, block_size=5120, ): - defaults = dict( - lr=0.1, - kalman_nue=kalman_nue, - block_size=block_size, - ) + defaults = { + "lr":0.1, + "kalman_nue":kalman_nue, + "block_size":block_size + } - super(LKFOptimizer, self).__init__(params, defaults) + super().__init__(params, defaults) self._params = self.param_groups[0]["params"]