__init__.py 1.4 KB
Newer Older
1 2 3
# -*- coding: utf-8 -*-
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
4
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
5 6 7 8 9
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

10
from .activation import GELU, LeakyReLU, PReLU, ReLU, Sigmoid, SiLU, Softmax
11
from .adaptive_pooling import AdaptiveAvgPool2d, AdaptiveMaxPool2d
12
from .batch_matmul_activation import BatchMatMulActivation
13 14
from .batchnorm import BatchNorm1d, BatchNorm2d, SyncBatchNorm
from .concat import Concat
15 16 17
from .conv import (
    Conv1d,
    Conv2d,
18
    Conv3d,
19 20
    ConvRelu2d,
    ConvTranspose2d,
21
    ConvTranspose3d,
22 23 24
    DeformableConv2d,
    LocalConv2d,
)
25
from .conv_bn import ConvBn2d, ConvBnRelu2d
26
from .deformable_psroi_pooling import DeformablePSROIPooling
27 28 29 30 31
from .dropout import Dropout
from .elemwise import Elemwise
from .embedding import Embedding
from .identity import Identity
from .linear import Linear
32
from .lrn import LocalResponseNorm
33
from .module import Module
34
from .normalization import GroupNorm, InstanceNorm, LayerNorm
35
from .padding import Pad
36
from .pixel_shuffle import PixelShuffle
37 38 39
from .pooling import AvgPool2d, MaxPool2d
from .quant_dequant import DequantStub, QuantStub
from .sequential import Sequential
40
from .sliding_window import SlidingWindow, SlidingWindowTranspose