You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

__init__.py 1.9 kB

6 years ago
6 years ago
6 years ago
12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Copyright 2020 Huawei Technologies Co., Ltd
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. # ============================================================================
  15. """
  16. Layer.
  17. The high-level components(Cells) used to construct the neural network.
  18. """
  19. from .activation import Softmax, LogSoftmax, ReLU, ReLU6, Tanh, GELU, ELU, Sigmoid, PReLU, get_activation, LeakyReLU, HSigmoid, HSwish
  20. from .normalization import BatchNorm1d, BatchNorm2d, LayerNorm, GroupNorm, GlobalBatchNorm
  21. from .container import SequentialCell, CellList
  22. from .conv import Conv2d, Conv2dTranspose
  23. from .lstm import LSTM
  24. from .basic import Dropout, Flatten, Dense, ClipByNorm, Norm, OneHot, Pad, Unfold
  25. from .embedding import Embedding
  26. from .pooling import AvgPool2d, MaxPool2d, AvgPool1d
  27. from .image import ImageGradients, SSIM, PSNR
  28. __all__ = ['Softmax', 'LogSoftmax', 'ReLU', 'ReLU6', 'Tanh', 'GELU', 'Sigmoid',
  29. 'PReLU', 'get_activation', 'LeakyReLU', 'HSigmoid', 'HSwish', 'ELU',
  30. 'BatchNorm1d', 'BatchNorm2d', 'LayerNorm', 'GroupNorm', 'GlobalBatchNorm',
  31. 'SequentialCell', 'CellList',
  32. 'Conv2d', 'Conv2dTranspose',
  33. 'LSTM',
  34. 'Dropout', 'Flatten', 'Dense', 'ClipByNorm', 'Norm', 'OneHot',
  35. 'Embedding',
  36. 'AvgPool2d', 'MaxPool2d', 'AvgPool1d', 'Pad', 'Unfold',
  37. 'ImageGradients', 'SSIM', 'PSNR',
  38. ]