quantize
- class torch.ao.quantization.quantize(model, run_fn, run_args, mapping=None, inplace=False)
Quantize the input float model with post training static quantization.
First it will prepare the model for calibration, then it calls run_fn which will run the calibration step, after that we will convert the model to a quantized model.