Optional tag like keepdim
may have been removed in several funcs
#151104
Labels
actionable
module: docs
Related to our documentation, both in docs/ and docblocks
module: python frontend
For issues relating to PyTorch's Python frontend
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Uh oh!
There was an error while loading. Please reload this page.
📚 The doc issue
Seen from #146156 and its PR pull#146485, maybe some other funcs also have optional tags removed:
What I met is
torch.any()
, but suggest fix this by change the description ofkeepdim
and any other similar arguments, for that there may be more funcs that have similar problem.Note that there may have some funcs that has
keepdim
or any other similar arguments not optional. So change the description of them may have risk!pytorch/torch/_torch_docs.py
Lines 852 to 880 in d94cc0e
While
keepdim
is showed here:pytorch/torch/_torch_docs.py
Lines 55 to 61 in d94cc0e
pytorch/torch/_torch_docs.py
Lines 43 to 52 in d94cc0e
Some similar arguments may include
dim
, etc.Suggest to solve it together with #146156
Suggest a potential alternative/fix
I suggest any one below:
keepdim
and any other similar arguments from origin def (have risk)keepdim
and any other similar arguments one by one (long time to fix)Thanks for noting!
cc @svekars @sekyondaMeta @AlannaBurke @albanD
The text was updated successfully, but these errors were encountered: