Torchscript backward compatibility #1819
-
Hi! What is your policy regarding torchscript backward compatibility? What I mean by that is: is it supported to export a torchscript using an "old" version of pytorch, and then try to convert that torchscript using torch-tensorRT newest version? As a practical example, I see different behaviours when trying to convert a torchscript exported using pytorch 1.9 or pytorch 1.11 with torch-tensorRT 1.3. It's failing with both versions of the torchscript:
Thanks in advance for any feedback you might have. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Generally there is not backwards compatibility between versions of PyTorch. This is due to PyTorch in the past changing their IR from version to version. Therefore, we always recommend exporting your torchscript with the version you intend to deploy with. |
Beta Was this translation helpful? Give feedback.
Generally there is not backwards compatibility between versions of PyTorch. This is due to PyTorch in the past changing their IR from version to version. Therefore, we always recommend exporting your torchscript with the version you intend to deploy with.