From 4d8fa7df400b51e0e492cd2891c000bd97ef69a6 Mon Sep 17 00:00:00 2001 From: Tom Ritchford Date: Mon, 13 May 2024 18:14:09 +0000 Subject: [PATCH] Fix four misspellings of "its" in documentation (#125681) Pull Request resolved: https://github.com/pytorch/pytorch/pull/125681 Approved by: https://github.com/Skylion007, https://github.com/svekars --- CONTRIBUTING.md | 4 ++-- RELEASE.md | 2 +- torch/_torch_docs.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 270e20a0b99b..e665e3fb8bbf 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -790,7 +790,7 @@ USE_PRECOMPILED_HEADERS=1 python setup.py develop ``` This adds a build step where the compiler takes `` and essentially -dumps it's internal AST to a file so the compiler can avoid repeating itself for +dumps its internal AST to a file so the compiler can avoid repeating itself for every `.cpp` file. One caveat is that when enabled, this header gets included in every file by default. @@ -1321,7 +1321,7 @@ There are two possible choices for which commit to use: 1. Checkout commit `B`, the head of the PR (manually committed by the PR author). 2. Checkout commit `C`, the hypothetical result of what would happen if the PR - were merged into it's destination (usually `main`). + were merged into its destination (usually `main`). For all practical purposes, most people can think of the commit being used as commit `B` (choice **1**). diff --git a/RELEASE.md b/RELEASE.md index 50da4cf44192..ff8e99883e4e 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -262,7 +262,7 @@ requires `pytorchbot`, so it's only available in PyTorch atm. ### Cherry Picking Reverts -If PR that has been cherry-picked into release branch has been reverted, it's cherry-pick must be reverted as well. +If PR that has been cherry-picked into release branch has been reverted, its cherry-pick must be reverted as well. Reverts for changes that was committed into the main branch prior to the branch cut, must be propagated into release branch as well. diff --git a/torch/_torch_docs.py b/torch/_torch_docs.py index 895dbc9edd24..ba8e899dc943 100644 --- a/torch/_torch_docs.py +++ b/torch/_torch_docs.py @@ -7587,7 +7587,7 @@ Supports strided and sparse 2-D tensors as inputs, autograd with respect to strided inputs. This operation has support for arguments with :ref:`sparse layouts`. -If :attr:`out` is provided it's layout will be used. Otherwise, the result +If :attr:`out` is provided its layout will be used. Otherwise, the result layout will be deduced from that of :attr:`input`. {sparse_beta_warning}