autodl-projects/lib/xlayers/super_core.py

47 lines
1.5 KiB
Python
Raw Normal View History

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