Revert "[BE][3/16] fix typos in torch/ (torch/_inductor/) (#156313)"

This reverts commit 3627270bdf17b0fb6f528ca1cb87d6f2ec32680a.

Reverted https://github.com/pytorch/pytorch/pull/156313 on behalf of https://github.com/atalman due to export/test_torchbind.py::TestCompileTorchbind::test_compile_error_on_input_aliasing_contents_backend_aot_eager [GH job link](https://github.com/pytorch/pytorch/actions/runs/15804799771/job/44548489912) [HUD commit link](c95f7fa874) ([comment](https://github.com/pytorch/pytorch/pull/156313#issuecomment-2994171213))
This commit is contained in:
PyTorch MergeBot
2025-06-22 12:31:57 +00:00
parent 5b427c92a8
commit f1331f3f1b
60 changed files with 181 additions and 181 deletions

View File

@ -1551,7 +1551,7 @@ class KernelArgs:
def size(self, name: sympy.Symbol) -> str:
assert isinstance(name, sympy.Symbol), (type(name), name)
if name.name == "seed":
self.sizevars[name] = "seed" # don't manage the name of seeds
self.sizevars[name] = "seed" # dont' mange the name of seeds
return "seed"
return self._lookup("ks", self.sizevars, name)
@ -1884,7 +1884,7 @@ class CSE(Generic[CSEVariableType, AugmentedKeyT]):
line = f"{expr}{self.suffix}"
buffer.writeline(line)
# cpp backend cannot determine is_vec at this point
# cpp backend cannot determin is_vec at this point
if (
assignment
and (
@ -2102,7 +2102,7 @@ class Kernel(CodeGen, Generic[CSEVariableType]):
assert upper is None or isinstance(upper, str)
if lower and upper:
# The conditions need to be in parens because of Python's operator precedence.
# It'd be less error-prone to use and/or/not, which is supported by triton
# It'd be less error-prone to use and/or/not, which is suported by triton
cond = f"({lower} <= {var}) & ({var} < {upper})"
cond_print = f"{lower} <= {var} < {upper}"
elif lower: