Skip to content

Commit 1764f3a

Browse files
lingebengpytorchmergebot
authored andcommitted
[Fix] fix gramma error in PyTorch docs (pytorch#166158)
Fix several gramma errors in PyTorch docs. Pull Request resolved: pytorch#166158 Approved by: https://github.com/yewentao256, https://github.com/cyyever, https://github.com/ezyang
1 parent c9eabad commit 1764f3a

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

docs/cpp/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Combining, these building blocks form a research and
1414
production ready C++ library for tensor computation and dynamic neural
1515
networks with strong emphasis on GPU acceleration as well as fast CPU
1616
performance. It is currently in use at Facebook in research and
17-
production; we are looking forward to welcome more users of the PyTorch C++ API.
17+
production; we are looking forward to welcoming more users of the PyTorch C++ API.
1818

1919
.. warning::
2020

docs/cpp/source/notes/inference_mode.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ users should pay additional attention to:
6464

6565
- Both guards affects tensor execution process to skip work not related to inference, but ``InferenceMode``
6666
also affects tensor creation while ``AutoNonVariableTypeMode`` doesn't. In other words, tensors created
67-
inside ``InferenceMode`` are marked as inference tensors so that certain limitation can be applied after
67+
inside ``InferenceMode`` are marked as inference tensors so that certain limitations can be applied after
6868
exiting ``InferenceMode``.
6969
- Enabled/disabled ``InferenceMode`` states can be nested while ``AutoNonVariableTypeMode`` only allows enabled state.
7070

docs/source/checkpoint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ restoring the RNG state during each checkpoint.
1717
The stashing logic saves and restores the RNG state for CPU and another
1818
device type (infer the device type from Tensor arguments excluding CPU
1919
tensors by `_infer_device_type`) to the `run_fn`. If there are multiple
20-
device, device state will only be saved for devices of a single device type,
20+
devices, device state will only be saved for devices of a single device type,
2121
and the remaining devices will be ignored. Consequently, if any checkpointed
2222
functions involve randomness, this may result in incorrect gradients. (Note
2323
that if CUDA devices are among the devices detected, it will be prioritized;

docs/source/distributed.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ MPI supports CUDA only if the implementation used to build PyTorch supports it.
5959

6060
### Backends that come with PyTorch
6161

62-
PyTorch distributed package supports Linux (stable), MacOS (stable), and Windows (prototype).
62+
PyTorch distributed package supports Linux (stable), macOS (stable), and Windows (prototype).
6363
By default for Linux, the Gloo and NCCL backends are built and included in PyTorch
6464
distributed (NCCL only when building with CUDA). MPI is an optional backend that can only be
6565
included if you build PyTorch from source. (e.g. building PyTorch on a host that has MPI
6666
installed.)
6767

6868
:::{note}
69-
As of PyTorch v1.8, Windows supports all collective communications backend but NCCL,
69+
As of PyTorch v1.8, Windows supports all collective communications backends but NCCL,
7070
If the `init_method` argument of {func}`init_process_group` points to a file it must adhere
7171
to the following schema:
7272

docs/source/mtia.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# torch.mtia
22

3-
The MTIA backend is implemented out of the tree, only interfaces are be defined here.
3+
The MTIA backend is implemented out of the tree, only interfaces are defined here.
44

55
```{eval-rst}
66
.. automodule:: torch.mtia

docs/source/mtia.memory.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# torch.mtia.memory
22

3-
The MTIA backend is implemented out of the tree, only interfaces are be defined here.
3+
The MTIA backend is implemented out of the tree, only interfaces are defined here.
44

55
```{eval-rst}
66
.. automodule:: torch.mtia.memory

0 commit comments

Comments
 (0)