mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Fix typos in comments (#48316)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/48316 Reviewed By: walterddr, mrshenli Differential Revision: D25125123 Pulled By: malfet fbshipit-source-id: 6f31e5456cc078cc61b288191f1933711acebba0
This commit is contained in:
committed by
Facebook GitHub Bot
parent
671ee71ad4
commit
2dff0b3e91
@ -135,7 +135,7 @@ def logging_rotate() -> None:
|
||||
@contextlib.contextmanager
|
||||
def logging_manager(*, debug: bool = False) -> Iterator[None]:
|
||||
"""Setup logging. If a failure starts here we won't
|
||||
be able to save the user ina reasonable way.
|
||||
be able to save the user in a reasonable way.
|
||||
|
||||
Logging structure: there is one logger (the root logger)
|
||||
and in processes all events. There are two handlers:
|
||||
@ -210,7 +210,7 @@ def check_branch(subcommand, branch):
|
||||
|
||||
@contextlib.contextmanager
|
||||
def timer(logger, prefix):
|
||||
"""Timed conetxt manager"""
|
||||
"""Timed context manager"""
|
||||
start_time = time.time()
|
||||
yield
|
||||
logger.info(f"{prefix} took {time.time() - start_time:.3f} [s]")
|
||||
|
||||
Reference in New Issue
Block a user