mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Rectified a few grammatical errors in documentation (#43695)
Summary: Rectified a few grammatical errors in documentation of pytorch. Pull Request resolved: https://github.com/pytorch/pytorch/pull/43695 Reviewed By: anjali411 Differential Revision: D23451600 Pulled By: ezyang fbshipit-source-id: bc7b34c240fde1b31cac811080befa2ff2989395
This commit is contained in:
committed by
Facebook GitHub Bot
parent
40fec4e739
commit
ab7606702c
@ -1086,7 +1086,7 @@ add_docstr(torch.stack,
|
||||
r"""
|
||||
stack(tensors, dim=0, *, out=None) -> Tensor
|
||||
|
||||
Concatenates sequence of tensors along a new dimension.
|
||||
Concatenates a sequence of tensors along a new dimension.
|
||||
|
||||
All tensors need to be of the same size.
|
||||
|
||||
@ -2080,7 +2080,7 @@ add_docstr(torch.dequantize,
|
||||
r"""
|
||||
dequantize(tensor) -> Tensor
|
||||
|
||||
Given a quantized Tensor, dequantize it and return an fp32 Tensor
|
||||
Returns an fp32 Tensor by dequantizing a quantized Tensor
|
||||
|
||||
Args:
|
||||
tensor (Tensor): A quantized Tensor
|
||||
@ -9133,7 +9133,7 @@ add_docstr(torch.Generator,
|
||||
r"""
|
||||
Generator(device='cpu') -> Generator
|
||||
|
||||
Creates and returns a generator object which manages the state of the algorithm that
|
||||
Creates and returns a generator object that manages the state of the algorithm which
|
||||
produces pseudo random numbers. Used as a keyword argument in many :ref:`inplace-random-sampling`
|
||||
functions.
|
||||
|
||||
|
Reference in New Issue
Block a user