# tensorplay.ao.quantization.convert Source: https://www.tensorplay.cn/docs/generated/tensorplay.ao.quantization.convert.html ```python tensorplay.ao.quantization.convert(module, mapping=None, inplace=False, remove_qconfig=True) ``` Swap calibrated float modules for their quantized counterparts. Each target class must expose from_float; activation qparams the quantized kernels require are resolved from the observers attached by [prepare()](/docs/generated/tensorplay.ao.quantization.prepare.html#tensorplay.ao.quantization.prepare) and exposed on the float module.