You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

internal_fake_quant.py 578 B

123456789101112131415
  1. # MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
  2. #
  3. # Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
  4. #
  5. # Unless required by applicable law or agreed to in writing,
  6. # software distributed under the License is distributed on an
  7. # "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  8. from functools import partial
  9. from .. import functional as F
  10. from ..autodiff import Function
  11. from .fake_quant import _FakeQuantize
  12. from .observer import MinMaxObserver
  13. from .qconfig import QConfig
  14. from .utils import QParams