c9019cd
1
2
3
4
5
6
7
8
9
from mmcv.utils import Registry, build_from_cfg TRANSFORMER = Registry('Transformer') def build_transformer(cfg, default_args=None): """Builder for Transformer.""" return build_from_cfg(cfg, TRANSFORMER, default_args)