|
|
|
@@ -17,24 +17,26 @@ Layer. |
|
|
|
|
|
|
|
The high-level components(Cells) used to construct the neural network. |
|
|
|
""" |
|
|
|
from .activation import Softmax, LogSoftmax, ReLU, ReLU6, Tanh, GELU, ELU, Sigmoid, PReLU, get_activation, LeakyReLU, HSigmoid, HSwish |
|
|
|
from .normalization import BatchNorm1d, BatchNorm2d, LayerNorm, GroupNorm, GlobalBatchNorm |
|
|
|
from .container import SequentialCell, CellList |
|
|
|
from .conv import Conv2d, Conv2dTranspose |
|
|
|
from .lstm import LSTM |
|
|
|
from .basic import Dropout, Flatten, Dense, ClipByNorm, Norm, OneHot, Pad, Unfold |
|
|
|
from .embedding import Embedding |
|
|
|
from .pooling import AvgPool2d, MaxPool2d, AvgPool1d |
|
|
|
from .image import ImageGradients, SSIM, PSNR |
|
|
|
from . import activation, normalization, container, conv, lstm, basic, embedding, pooling, image, quant |
|
|
|
from .activation import * |
|
|
|
from .normalization import * |
|
|
|
from .container import * |
|
|
|
from .conv import * |
|
|
|
from .lstm import * |
|
|
|
from .basic import * |
|
|
|
from .embedding import * |
|
|
|
from .pooling import * |
|
|
|
from .image import * |
|
|
|
from .quant import * |
|
|
|
|
|
|
|
__all__ = ['Softmax', 'LogSoftmax', 'ReLU', 'ReLU6', 'Tanh', 'GELU', 'Sigmoid', |
|
|
|
'PReLU', 'get_activation', 'LeakyReLU', 'HSigmoid', 'HSwish', 'ELU', |
|
|
|
'BatchNorm1d', 'BatchNorm2d', 'LayerNorm', 'GroupNorm', 'GlobalBatchNorm', |
|
|
|
'SequentialCell', 'CellList', |
|
|
|
'Conv2d', 'Conv2dTranspose', |
|
|
|
'LSTM', |
|
|
|
'Dropout', 'Flatten', 'Dense', 'ClipByNorm', 'Norm', 'OneHot', |
|
|
|
'Embedding', |
|
|
|
'AvgPool2d', 'MaxPool2d', 'AvgPool1d', 'Pad', 'Unfold', |
|
|
|
'ImageGradients', 'SSIM', 'PSNR', |
|
|
|
] |
|
|
|
__all__ = [] |
|
|
|
__all__.extend(activation.__all__) |
|
|
|
__all__.extend(normalization.__all__) |
|
|
|
__all__.extend(container.__all__) |
|
|
|
__all__.extend(conv.__all__) |
|
|
|
__all__.extend(lstm.__all__) |
|
|
|
__all__.extend(basic.__all__) |
|
|
|
__all__.extend(embedding.__all__) |
|
|
|
__all__.extend(pooling.__all__) |
|
|
|
__all__.extend(image.__all__) |
|
|
|
__all__.extend(quant.__all__) |