trunk/294cb4cba0aaefd82a37854b7f470dc5c7b878cd: Support optional Tensor list schemas (#187012)
- PyTorch: 1371 events in the last 90 days
- PyTorch: 1354th Release in the last 90 days
- Previous: earlier the same day · trunk/54144378a73d2a2d570286611acfc88e585cda2b: Add META's Math Library (#198207) (#198207)
What happened
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…
Summary assembled by rule from the sources below