Revert "[BE][6/16] fix typos in torch/ (#156316)"

This reverts commit b210cf1ea56bcd9f937a2805d9e70d8684d25ee4.

Reverted https://github.com/pytorch/pytorch/pull/156316 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 035a68d25a
commit 3f44fdc03d
32 changed files with 59 additions and 58 deletions

View File

@ -112,7 +112,7 @@ def freeze_rng_state(*args, **kwargs):
# Class to keep track of test flags configurable by environment variables.
# Flags set here are intended to be read-only and should not be modified after
# definition.
# TODO: Expand this class to handle arbitrary settings in addition to boolean flags?
# TODO: Expand this class to handle abritrary settings in addition to boolean flags?
class TestEnvironment:
# Set of env vars to set for the repro command that is output on test failure.
# Specifically, this includes env vars that are set to non-default values and
@ -4546,7 +4546,7 @@ def find_free_port():
NOTE: If this function is being used to allocate a port to Store (or
indirectly via init_process_group or init_rpc), it should be used
in conjunction with the `retry_on_connect_failures` decorator as there is a potential
in conjuction with the `retry_on_connect_failures` decorator as there is a potential
race condition where the allocated port may become unavailable before it can be used
"""
with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as sock: