__init__.py 2.9 KB
Newer Older
L
Leo Chen 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#   Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

15
# TODO: define activation functions of neural network
L
Leo Chen 已提交
16

17
from . import activation
L
Leo Chen 已提交
18
from . import loss
19
from . import conv
20 21
from . import extension
from . import activation
22
from . import norm
23

24
from .activation import *
25 26
from .loss import *
from .conv import *
27 28
from .extension import *
from .activation import *
29
from .norm import *
30 31
# from .activation import PReLU        #DEFINE_ALIAS
from .activation import ReLU  #DEFINE_ALIAS
C
ceci3 已提交
32
from .activation import LeakyReLU  #DEFINE_ALIAS
33 34 35 36 37 38
from .activation import Sigmoid  #DEFINE_ALIAS
# from .activation import Softmax        #DEFINE_ALIAS
from .activation import LogSoftmax  #DEFINE_ALIAS
from .activation import HSigmoid  #DEFINE_ALIAS
from .common import BilinearTensorProduct  #DEFINE_ALIAS
from .common import Pool2D  #DEFINE_ALIAS
C
ceci3 已提交
39
from .common import Pad2D  #DEFINE_ALIAS
40 41
from .common import Embedding  #DEFINE_ALIAS
from .common import Linear  #DEFINE_ALIAS
42
from .common import UpSample  #DEFINE_ALIAS
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
from .conv import Conv2D  #DEFINE_ALIAS
from .conv import Conv2DTranspose  #DEFINE_ALIAS
from .conv import Conv3D  #DEFINE_ALIAS
from .conv import Conv3DTranspose  #DEFINE_ALIAS
# from .conv import TreeConv        #DEFINE_ALIAS
# from .conv import Conv1D        #DEFINE_ALIAS
from .extension import RowConv  #DEFINE_ALIAS
# from .learning_rate import CosineDecay        #DEFINE_ALIAS
# from .learning_rate import ExponentialDecay        #DEFINE_ALIAS
# from .learning_rate import InverseTimeDecay        #DEFINE_ALIAS
# from .learning_rate import NaturalExpDecay        #DEFINE_ALIAS
# from .learning_rate import NoamDecay        #DEFINE_ALIAS
# from .learning_rate import PiecewiseDecay        #DEFINE_ALIAS
# from .learning_rate import PolynomialDecay        #DEFINE_ALIAS
# from .loss import NCELoss        #DEFINE_ALIAS
from .loss import CrossEntropyLoss  #DEFINE_ALIAS
from .loss import MSELoss  #DEFINE_ALIAS
from .loss import L1Loss  #DEFINE_ALIAS
from .loss import NLLLoss  #DEFINE_ALIAS
from .loss import BCELoss  #DEFINE_ALIAS
from .norm import BatchNorm  #DEFINE_ALIAS
from .norm import GroupNorm  #DEFINE_ALIAS
from .norm import LayerNorm  #DEFINE_ALIAS
from .norm import SpectralNorm  #DEFINE_ALIAS
from .norm import InstanceNorm  #DEFINE_ALIAS
# from .rnn import RNNCell        #DEFINE_ALIAS
# from .rnn import GRUCell        #DEFINE_ALIAS
# from .rnn import LSTMCell        #DEFINE_ALIAS