Commit 9a153aa
authored
Fix dynamic_shapes variable naming in ONNX dynamo export (#15047)
Fixes #15040
When exporting Parakeet models to ONNX with use_dynamo=True,
PyTorch's dynamo export expects the parameter name 'dynamic_shapes'
not 'dynamic_axes'. This fix introduces a properly-named variable
for the dynamo code path to avoid confusion and potential errors.
Changes:
- Introduced dynamic_shapes variable when use_dynamo=True
- Updated torch.export.export call to use dynamic_shapes parameter
- Updated logging to display the correct variable name
The non-dynamo code path continues to use dynamic_axes as expected
by torch.onnx.export.
Tested by issue reporter who confirmed ONNX export succeeds after
this change.
Signed-off-by: Yashwant Bezawada <yashwant_b@me.com>1 parent f767ae5 commit 9a153aa
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
227 | 230 | | |
228 | 231 | | |
229 | 232 | | |
230 | 233 | | |
231 | | - | |
| 234 | + | |
232 | 235 | | |
233 | 236 | | |
234 | 237 | | |
| |||
243 | 246 | | |
244 | 247 | | |
245 | 248 | | |
246 | | - | |
| 249 | + | |
247 | 250 | | |
248 | 251 | | |
249 | 252 | | |
| |||
0 commit comments