viable/strict/1791498592: [dynamo] Report element types for list/tuple schema mismatches (#199351)
- PyTorch: 2139 events in the last 90 days
- PyTorch: 2110th Release in the last 90 days
- Previous: earlier the same day · viable/strict/1791496391: Suggest nightly in bug templates (#200205)
What happened
Summary When a custom op's schema declares int[] but receives a Python list containing symbolic integers (e.g. via .tolist() under capture_scalar_outputs ), the resulting schema-mismatch error reports only the outer container type: Expected a value of type 'List[int]' for argument 'sizes' but instead found type 'immutable_list'. This obscures the actual problem — the elements are SymInt , not int — and gives no indi…
Summary assembled by rule from the sources below