File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 44from pytorch_optimizer .adamp import AdamP
55from pytorch_optimizer .diffgrad import DiffGrad
66from pytorch_optimizer .diffrgrad import DiffRGrad
7- from pytorch_optimizer .fp16 import SafeFP16Optimizer
87from pytorch_optimizer .lamb import Lamb
98from pytorch_optimizer .lars import LARS
109from pytorch_optimizer .madgrad import MADGRAD
1514from pytorch_optimizer .sgdp import SGDP
1615
1716
18- def load_optimizers (optimizer : str , use_fp16 : bool = False ):
17+ def load_optimizers (optimizer : str ):
1918 optimizer : str = optimizer .lower ()
2019
2120 if optimizer == 'adamp' :
@@ -49,7 +48,4 @@ def load_optimizers(optimizer: str, use_fp16: bool = False):
4948 else :
5049 raise NotImplementedError (f'[-] not implemented optimizer : { optimizer } ' )
5150
52- if use_fp16 :
53- opt = SafeFP16Optimizer (opt )
54-
5551 return opt
You can’t perform that action at this time.
0 commit comments