megengine.quantization.reset_qconfig

reset_qconfig(module, qconfig, inplace=True)[source]

Reset _FakeQuantize and Observer according to qconfig

Parameters
  • module (Module) – root module to reset recursively.

  • qconfig (QConfig) – an instance of QConfig to be set as submodules’ qconfig.

  • inplace (bool) – whether to reset submodules in-place.