-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Closed
Labels
actionablemodule: typingRelated to mypy type annotationsRelated to mypy type annotationsmodule: viewing and reshapingtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Description
📚 The doc issue
Both
- the documentation at https://pytorch.org/docs/stable/generated/torch.chunk.html as of V2.3 and
- the type annotation in line 736 of torch/_C/_VariableFunctions.pyi
claim that the return type of torch.chunk is List[Tensor], whereas in reality it is Tuple[Tensor] according to
- The "Example" section on that exact documentation page and
- local testing with pytorch 2.1.0.
Suggest a potential alternative/fix
Fix the doc and the annotations.
Metadata
Metadata
Assignees
Labels
actionablemodule: typingRelated to mypy type annotationsRelated to mypy type annotationsmodule: viewing and reshapingtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module