Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[doc] Tensor.mean: dtype kwarg is not documented #29758

Open
Tracked by #61417
ssnl opened this issue Nov 13, 2019 · 1 comment
Open
Tracked by #61417

[doc] Tensor.mean: dtype kwarg is not documented #29758

ssnl opened this issue Nov 13, 2019 · 1 comment
Labels
module: docs Related to our documentation, both in docs/ and docblocks module: reductions triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@ssnl
Copy link
Collaborator

ssnl commented Nov 13, 2019

The following works:

>>> torch.__version__
'1.4.0a0+5635a72'

>>> x.mean(dtype=torch.float)
tensor(1.5000)
>>> help(x.mean)

>>> x.mean(dim=1, dtype=torch.float)
tensor([1.6667, 1.3333])

Yet the doc doesn't say anything about the dtype argument:

Help on built-in function mean:

mean(...) method of torch.Tensor instance
    mean(dim=None, keepdim=False) -> Tensor or (Tensor, Tensor)

    See :func:`torch.mean`
@vincentqb vincentqb added module: docs Related to our documentation, both in docs/ and docblocks triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module labels Nov 14, 2019
@vincentqb
Copy link
Contributor

Please feel free to submit a pull request for this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: docs Related to our documentation, both in docs/ and docblocks module: reductions triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

No branches or pull requests

3 participants