Files
xautodl/lib/xlayers/super_core.py

47 lines
1.5 KiB
Python
Raw Normal View History

2021-03-18 18:32:26 +08:00
#####################################################
# Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2021.03 #
#####################################################
2021-03-19 15:17:49 +08:00
from .super_module import SuperRunMode
2021-03-21 20:52:22 +08:00
from .super_module import IntSpaceType
2021-03-24 05:33:52 -07:00
from .super_module import LayerOrder
2021-03-21 20:52:22 +08:00
2021-03-18 18:32:26 +08:00
from .super_module import SuperModule
2021-03-21 13:26:52 +08:00
from .super_container import SuperSequential
2021-03-19 03:22:58 -07:00
from .super_linear import SuperLinear
2021-03-20 22:28:23 +08:00
from .super_linear import SuperMLPv1, SuperMLPv2
2021-05-06 16:38:58 +08:00
from .super_norm import SuperSimpleNorm
2021-03-20 22:28:23 +08:00
from .super_norm import SuperLayerNorm1D
2021-05-06 16:38:58 +08:00
from .super_norm import SuperSimpleLearnableNorm
from .super_norm import SuperIdentity
2021-05-12 20:32:50 +08:00
from .super_dropout import SuperDropout
2021-05-06 16:38:58 +08:00
super_name2norm = {
"simple_norm": SuperSimpleNorm,
"simple_learn_norm": SuperSimpleLearnableNorm,
"layer_norm_1d": SuperLayerNorm1D,
"identity": SuperIdentity,
}
2021-03-20 15:56:37 +08:00
from .super_attention import SuperAttention
2021-03-20 22:28:23 +08:00
from .super_transformer import SuperTransformerEncoderLayer
2021-03-21 20:52:22 +08:00
2021-04-25 06:02:43 -07:00
from .super_activations import SuperReLU
2021-04-29 16:30:47 +08:00
from .super_activations import SuperLeakyReLU
2021-05-07 10:26:35 +08:00
from .super_activations import SuperTanh
2021-05-12 13:54:06 +08:00
from .super_activations import SuperGELU
from .super_activations import SuperSigmoid
2021-04-25 06:02:43 -07:00
2021-05-07 10:26:35 +08:00
super_name2activation = {
"relu": SuperReLU,
2021-05-12 13:54:06 +08:00
"sigmoid": SuperSigmoid,
"gelu": SuperGELU,
2021-05-07 10:26:35 +08:00
"leaky_relu": SuperLeakyReLU,
"tanh": SuperTanh,
}
2021-05-06 16:38:58 +08:00
2021-03-21 20:52:22 +08:00
from .super_trade_stem import SuperAlphaEBDv1
2021-05-12 15:45:45 +08:00
from .super_positional_embedding import SuperDynamicPositionE
2021-03-21 20:52:22 +08:00
from .super_positional_embedding import SuperPositionalEncoder