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

Pull Request resolved: https://github.com/pytorch/pytorch/pull/156316
Approved by: https://github.com/albanD
ghstack dependencies: #156313, #156314, #156315
This commit is contained in:
Xuehai Pan
2025-06-22 13:21:04 +08:00
committed by PyTorch MergeBot
parent c2f0292bd5
commit b210cf1ea5
32 changed files with 58 additions and 59 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 abritrary settings in addition to boolean flags?
# TODO: Expand this class to handle arbitrary 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 conjuction with the `retry_on_connect_failures` decorator as there is a potential
in conjunction 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: