mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
[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:
committed by
PyTorch MergeBot
parent
4ccc0381de
commit
cec2977ed2
@ -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:
|
||||
|
Reference in New Issue
Block a user