mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
docs: clarify alias usage for x parameter in vector_norm function (#136921)
- Added a note in the documentation specifying that the `input` parameter can be used as an alias for `x`. Fixes #136560 Pull Request resolved: https://github.com/pytorch/pytorch/pull/136921 Approved by: https://github.com/ezyang Co-authored-by: Edward Z. Yang <ezyang@meta.com>
This commit is contained in:
parent
377e4bc877
commit
80393c90b3
|
|
@ -1440,7 +1440,8 @@ but it is faster in some cases.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
x (Tensor): tensor, flattened by default, but this behavior can be
|
x (Tensor): tensor, flattened by default, but this behavior can be
|
||||||
controlled using :attr:`dim`.
|
controlled using :attr:`dim`. (Note: the keyword argument
|
||||||
|
`input` can also be used as an alias for `x`.)
|
||||||
ord (int, float, inf, -inf, 'fro', 'nuc', optional): order of norm. Default: `2`
|
ord (int, float, inf, -inf, 'fro', 'nuc', optional): order of norm. Default: `2`
|
||||||
dim (int, Tuple[int], optional): dimensions over which to compute
|
dim (int, Tuple[int], optional): dimensions over which to compute
|
||||||
the norm. See above for the behavior when :attr:`dim`\ `= None`.
|
the norm. See above for the behavior when :attr:`dim`\ `= None`.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user