viable/strict/1789482542: [dynamo] Specialize symbolic list.pop() indices (#196590)
- PyTorch: 979 events in the last 90 days
- PyTorch: 968th Release in the last 90 days
- Previous: earlier the same day · viable/strict/1789478935
What happened
Fixes #196285 BaseListVariable.list_pop called as_python_constant() on its index argument, so a shape-derived index under dynamic=True raised AsPythonConstantNotImplementedError and escaped the tracer as InternalTorchDynamoError . The index cannot stay symbolic, since which element leaves the list determines the structure of the traced graph. It now goes through the conversion Argument Clinic generates for index: Py…
Summary assembled by rule from the sources below