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

trunk/294cb4cba0aaefd82a37854b7f470dc5c7b878cd: Support optional Tensor list schemas (#187012)

发生了什么

torch.library.infer_schema derives supported parameter annotations from a small table of base types and generated list/optional variants. Tensor enabled Tensor[] and Tensor?[] but explicitly disabled Tensor[]?, so annotations such as Optional[list[torch.Tensor]] were rejected even though the dispatcher schema language supports optional Tensor lists. The generator also did not compose the optional-element and optiona…

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

为什么在扩散

来源