builder.py 166 字节
Newer Older
L
LielinJiang 已提交
1 2 3 4 5 6 7 8 9 10
import paddle

from ..utils.registry import Registry

MODELS = Registry("MODEL")


def build_model(cfg):
    model = MODELS.get(cfg.model.name)(cfg)
    return model