__init__.py 1.8 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# Copyright (c) 2022 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
from ..fluid.contrib.slim.quantization.imperative.ptq_config import (
16 17 18
    PTQConfig,
    default_ptq_config,
)
19
from ..fluid.contrib.slim.quantization.imperative.ptq_quantizer import (
20 21
    BaseQuantizer,
)
22
from ..fluid.contrib.slim.quantization.imperative.ptq_quantizer import (
23 24
    AbsmaxQuantizer,
)
25
from ..fluid.contrib.slim.quantization.imperative.ptq_quantizer import (
26 27
    PerChannelAbsmaxQuantizer,
)
28
from ..fluid.contrib.slim.quantization.imperative.ptq_quantizer import (
29 30
    KLQuantizer,
)
31
from ..fluid.contrib.slim.quantization.imperative.ptq_quantizer import (
32 33
    HistQuantizer,
)
34
from ..fluid.contrib.slim.quantization.imperative.ptq_quantizer import (
35 36
    SUPPORT_ACT_QUANTIZERS,
)
37
from ..fluid.contrib.slim.quantization.imperative.ptq_quantizer import (
38 39
    SUPPORT_WT_QUANTIZERS,
)
40
from ..fluid.contrib.slim.quantization.imperative.ptq_registry import (
41 42
    PTQRegistry,
)
43 44
from ..fluid.contrib.slim.quantization.imperative.ptq import ImperativePTQ
from ..fluid.contrib.slim.quantization.imperative.qat import (
45 46
    ImperativeQuantAware,
)
47 48 49 50 51 52 53 54 55 56 57


from .config import QuantConfig
from .base_quanter import BaseQuanter
from .factory import quanter

__all__ = [
    "QuantConfig",
    "BaseQuanter",
    "quanter",
]