(config)
return arch_model
get architecture model class
get architecture model class
get architecture model class
def build_model(config):
    """
    get architecture model class
    """
    copy_config = copy.deepcopy(config)
    arch_type = copy_config.pop('type')
    assert arch_type in support_model, f'{arch_type} is not developed yet!, only {support_model} are support now'
    arch_model = eval(arch_type)(copy_config)
    return arch_model
def build_model ( config ) : copy_config = copy . deepcopy ( config ) arch_type = copy_config . pop ( 'type' ) assert arch_type in support_model , f'{arch_type} is not developed yet!, only {support_model} are support now' arch_model = eval ( arch_type ) ( copy_config ) return arch_model