20 Build the whole model architecture, defined by ``cfg.MODEL.META_ARCHITECTURE``.
21 Note that it does not load any weights from ``cfg``.
23 meta_arch = cfg.MODEL.META_ARCHITECTURE
24 model = META_ARCH_REGISTRY.get(meta_arch)(cfg)
25 model.to(torch.device(cfg.MODEL.DEVICE))