# ONNX export of quantized model

**URL:** <https://discuss.pytorch.org/t/onnx-export-of-quantized-model/76884>\
**Category:** quantization\
**Created:** [April 15, 2020, 3:14pm UTC](https://discuss.pytorch.org/t/onnx-export-of-quantized-model/76884 "2020-04-15T15:14:40Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![ZyrianovS](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/zyrianovs/32/30350_2.png) [@ZyrianovS](https://discuss.pytorch.org/u/ZyrianovS)\
**Post date:** [July 13, 2021, 8:17am UTC](https://discuss.pytorch.org/t/onnx-export-of-quantized-model/76884/25 "2021-07-13T08:17:59Z")

</div>

UPD: If I script it with `torch.jit.script(model_int8)` before `torch.onnx.export` I get another error:  
`RuntimeError: Exporting the operator quantize_per_tensor to ONNX opset version 9 is not supported. Please feel free to request support or submit a pull request on PyTorch GitHub.`

---

_[View the full topic](https://discuss.pytorch.org/t/onnx-export-of-quantized-model/76884)._
