Pytorch Post-training Static Quantization 和 Quantization Aware Training 加载模型
Post-trainingStaticQuantizationself.model.eval()checkpoint=torch.load(checkpoint_path,map_location=lambdastorage,loc:storage)load_model_weight(self.model,checkpoint)self.model.qconfig=torch.quantizati