trunk/294cb4cba0aaefd82a37854b7f470dc5c7b878cd: Support optional Tensor list schemas (#187012)
- PyTorch 近 90 天出现 1372 次
- PyTorch 近 90 天第 1355 次发版
- 上一次:同一天稍早 · trunk/54144378a73d2a2d570286611acfc88e585cda2b: Add META's Math Library (#198207) (#198207)
发生了什么
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…
摘要按规则整理自下方来源原文