ComfyUI/custom_nodes/annotator/uniformer/mmcv/parallel/registry.py
2023-02-19 19:13:55 +07:00

9 lines
332 B
Python

# Copyright (c) OpenMMLab. All rights reserved.
from torch.nn.parallel import DataParallel, DistributedDataParallel
from annotator.uniformer.mmcv.utils import Registry
MODULE_WRAPPERS = Registry('module wrapper')
MODULE_WRAPPERS.register_module(module=DataParallel)
MODULE_WRAPPERS.register_module(module=DistributedDataParallel)