Skip to content

[docs] Unclear arg spec for torch.full #34210

@vadimkantorov

Description

@vadimkantorov

https://pytorch.org/docs/master/torch.html?highlight=torch%20full#torch.full

fill_value – the number to fill the output tensor with.

the arg spec or the arg description doesn't specify if the "number" must be Python scalar or if Torch scalar is also fine. It also doesn't specify if the device of the Torch scalar must match the device passed to the full(...) call and if gradient to fill_value is backpropped, Wording number is quite vague.

Also argument name size is used - maybe better to replace it with shape? shape property name was adopted long time ago, and even NumPy uses shape in the similar method: https://docs.scipy.org/doc/numpy/reference/generated/numpy.full.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: docsRelated to our documentation, both in docs/ and docblocksmodule: numpyRelated to numpy support, and also numpy compatibility of our operatorstriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions