← 返回事件
持续讨论AI发版

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

图:PyTorch Releases

发生了什么

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…

摘要按规则整理自下方来源原文

为什么在扩散

来源