__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 32
from .dropout import Dropout
from .elemwise import Elemwise
from .embedding import Embedding
from .identity import Identity
from .linear import Linear
from .module import Module
33
from .normalization import GroupNorm, InstanceNorm, LayerNorm
34
from .padding import Pad
35 36 37
from .pooling import AvgPool2d, MaxPool2d
from .quant_dequant import DequantStub, QuantStub
from .sequential import Sequential
38
from .sliding_window import SlidingWindow, SlidingWindowTranspose