megengine.quantization.LSQ.disable_quantize

LSQ.disable_quantize(value=True)

Sets module’s quantize_disabled attribute and return module. Could be used as a decorator.