__init__.py 1.2 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 10
#
# 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.

from .activation import LeakyReLU, PReLU, ReLU, Sigmoid, 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 18 19 20 21 22
from .conv import (
    Conv1d,
    Conv2d,
    ConvRelu2d,
    ConvTranspose2d,
    DeformableConv2d,
    LocalConv2d,
)
23
from .conv_bn import ConvBn2d, ConvBnRelu2d
24
from .deformable_psroi_pooling import DeformablePSROIPooling
25 26 27 28 29 30
from .dropout import Dropout
from .elemwise import Elemwise
from .embedding import Embedding
from .identity import Identity
from .linear import Linear
from .module import Module
31
from .normalization import GroupNorm, InstanceNorm, LayerNorm
32 33 34
from .pooling import AvgPool2d, MaxPool2d
from .quant_dequant import DequantStub, QuantStub
from .sequential import Sequential