Closed BloodAxe closed 1 year ago
Thanks @BloodAxe , this is already fixed internally, and will mirror to github repo in the next monthly release.
fixed in 23.08 release, version 2.1.3, and will also upgrade in pypi soon. closing and thanks!
Hello, I apologize for disturbing you in your free time. May I ask what is the highest version of PyTorch that pytorch_quantization supports?
已在 23.08 版本 2.1.3 中修复,并且很快也会在 pypi 中升级。结束并感谢!
Hello, I apologize for disturbing you in your free time. May I ask what is the highest version of PyTorch that pytorch_quantization supports?
Description
We encountered the issue when trying to quantize Yolo-NAS model that uses nn.ConvTranspose2d modules: https://github.com/Deci-AI/super-gradients/issues/1045
It seems that in your
QuantConvTranspose2d
class you're using some internal API for pytorch classes. Namely, class uses_output_padding
method function fromtorch.nn.modules.conv._ConvTransposeNd
which is a part of private API.It looks like after pytorch 1.11 this API has been changed slightly and now function call fails since on newer version of pytorch this method require two additional arguments.
Environment
TensorRT Version: N/A
NVIDIA GPU: 3090
NVIDIA Driver Version: 525.60.13
CUDA Version: 11.7
CUDNN Version: N/A
pytorch_quantization: 2.1.2
Operating System:
Python Version (if applicable): All versions
Tensorflow Version (if applicable):
PyTorch Version (if applicable): 1.13, 2.0
Baremetal or Container (if so, version): Both
Relevant Files
Steps To Reproduce
Following code fails when executed in torch 1.13:
Suggested Fix
We were able to quantize & calibrate model without any issues with the following fix:
We are happy to make a PR if the suggested solution looks good to you.