Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
-
After prototyping 1 and 2, converters validation is required for dynamic shapes. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
After prototyping 1 and 2, converters validation is required for dynamic shapes. |
Beta Was this translation helpful? Give feedback.
-
This RFC aims to enhance our dynamic shape support and close the gaps to fully compile a model with dynamic shapes.
Two backends we support :
torch.export
We already support dynamic shapes via Input API frontend. The left over tasks are in this story. #2274
torch.compile
The proposal is to pass
torch_tensorrt.Input
API objects via backend options as follows:These input objects pass the (min, opt, max) range to TensorRT conversion.
torch_tensorrt.Input
s.Case 1: No fallback case
If the graph is end-end compiled by TRT, recompilation shouldn't happen if the input shape is changed during inference. Explore recompilation triggers and when this happens.
Case 2: Fallback
Beta Was this translation helpful? Give feedback.
All reactions