mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
@ -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:
|
||||
|
Reference in New Issue
Block a user