← Back to events
ActiveAIRelease

viable/strict/1789482542: [dynamo] Specialize symbolic list.pop() indices (#196590)

Photo: PyTorch Releases

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

Why it's spreading

Sources