mirror of https://github.com/alibaba/EasyCV.git
8 lines
202 B
Python
8 lines
202 B
Python
|
from easycv.utils.registry import Registry, build_from_cfg
|
||
|
|
||
|
OPTIMIZER_BUILDERS = Registry('optimizer builder')
|
||
|
|
||
|
|
||
|
def build_optimizer_constructor(cfg):
|
||
|
return build_from_cfg(cfg, OPTIMIZER_BUILDERS)
|