Skip to content

Commit

Permalink
fixed typo in documentation (#125974)
Browse files Browse the repository at this point in the history
Summary: Fixed typo in documentation. Trying to get familiar with the PR workflow for contributing to PyTorch.

Test Plan: None

Reviewers:

Subscribers:

Tasks:

Tags:

Fixes #ISSUE_NUMBER

Pull Request resolved: #125974
Approved by: https://github.com/ezyang
  • Loading branch information
shazqadeer authored and pytorchmergebot committed May 13, 2024
1 parent 1c3fe84 commit afda668
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2062,8 +2062,8 @@ def _constrain_as_size(symbol, min: Optional[builtins.int] = None, max: Optional
This function has unusual semantics which distinguish it from
_constrain_as_value. Specifically, in some circumstances in framework
code, we will treat this int as >= 2 (when we do a size-oblivious guard).
This makes it easier to This makes it easier to use the unbacked int in
size contexts, as we will often attempt to guard on a size being zero/one
This makes it easier to use the unbacked int in size contexts,
as we will often attempt to guard on a size being zero/one
(e.g., when computing the contiguity of a tensor, or testing if
broadcasting can occur), which will not work on unbacked SymInts.
However, if we conservatively assume that the size is not zero/one, we will
Expand Down

0 comments on commit afda668

Please sign in to comment.