mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-04 18:40:28 +00:00
[legacy] move builder and registry to legacy (#4603)
This commit is contained in:
19
colossalai/legacy/registry/__init__.py
Normal file
19
colossalai/legacy/registry/__init__.py
Normal file
@@ -0,0 +1,19 @@
|
||||
import torch.distributed.optim as dist_optim
|
||||
import torch.nn as nn
|
||||
import torch.optim as optim
|
||||
|
||||
from .registry import Registry
|
||||
|
||||
LAYERS = Registry("layers", third_party_library=[nn])
|
||||
MODELS = Registry("models")
|
||||
OPTIMIZERS = Registry("optimizers", third_party_library=[optim, dist_optim])
|
||||
DATASETS = Registry("datasets")
|
||||
DIST_GROUP_INITIALIZER = Registry("dist_group_initializer")
|
||||
GRADIENT_HANDLER = Registry("gradient_handler")
|
||||
LOSSES = Registry("losses", third_party_library=[nn])
|
||||
HOOKS = Registry("hooks")
|
||||
TRANSFORMS = Registry("transforms")
|
||||
DATA_SAMPLERS = Registry("data_samplers")
|
||||
LR_SCHEDULERS = Registry("lr_schedulers")
|
||||
SCHEDULE = Registry("schedules")
|
||||
OPHOOKS = Registry("ophooks")
|
Reference in New Issue
Block a user