mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Fixed torch.arange docs (#18604)
Summary: Kindly let me know if its okay and if any places i need to make a fix. Closes #18534 Pull Request resolved: https://github.com/pytorch/pytorch/pull/18604 Differential Revision: D14680712 Pulled By: soumith fbshipit-source-id: 030e4a3d8f7839cbe2b8a3ef386323f0d39eb81a
This commit is contained in:
committed by
Facebook Github Bot
parent
e22a2b9015
commit
c189eba3e1
@ -4031,7 +4031,11 @@ Args:
|
||||
end (float): the ending value for the set of points
|
||||
step (float): the gap between each pair of adjacent points. Default: ``1``.
|
||||
{out}
|
||||
{dtype}
|
||||
{dtype} If `dtype` is not given, infer the data type from the other input
|
||||
arguments. If any of `start`, `end`, or `stop` are floating-point, the
|
||||
`dtype` is inferred to be the default dtype, see
|
||||
:meth:`~torch.get_default_dtype`. Otherwise, the `dtype` is inferred to
|
||||
be `torch.int64`.
|
||||
{layout}
|
||||
{device}
|
||||
{requires_grad}
|
||||
|
Reference in New Issue
Block a user