2021-10-28 16:21:23 +00:00
|
|
|
import torch.distributed.optim as dist_optim
|
|
|
|
import torch.nn as nn
|
|
|
|
import torch.optim as optim
|
|
|
|
|
|
|
|
from .registry import Registry
|
|
|
|
|
2022-01-25 14:20:54 +00:00
|
|
|
LAYERS = Registry("layers", third_party_library=[nn])
|
|
|
|
LOSSES = Registry("losses")
|
2022-04-22 07:24:35 +00:00
|
|
|
MODELS = Registry("models")
|
2022-01-25 14:20:54 +00:00
|
|
|
OPTIMIZERS = Registry("optimizers", third_party_library=[optim, dist_optim])
|
2022-04-22 07:24:35 +00:00
|
|
|
DATASETS = Registry("datasets")
|
2022-01-25 14:20:54 +00:00
|
|
|
DIST_GROUP_INITIALIZER = Registry("dist_group_initializer")
|
|
|
|
GRADIENT_HANDLER = Registry("gradient_handler")
|
|
|
|
LOSSES = Registry("losses", third_party_library=[nn])
|
|
|
|
HOOKS = Registry("hooks")
|
2022-04-22 07:24:35 +00:00
|
|
|
TRANSFORMS = Registry("transforms")
|
2022-01-25 14:20:54 +00:00
|
|
|
DATA_SAMPLERS = Registry("data_samplers")
|
|
|
|
LR_SCHEDULERS = Registry("lr_schedulers")
|
|
|
|
SCHEDULE = Registry("schedules")
|
|
|
|
OPHOOKS = Registry("ophooks")
|