mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-15 21:00:47 +00:00
See #145101 for details. Pull Request resolved: https://github.com/pytorch/pytorch/pull/145163 Approved by: https://github.com/Skylion007
24 lines
610 B
Python
24 lines
610 B
Python
#!/usr/bin/env python3
|
|
# mypy: allow-untyped-defs
|
|
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
# All rights reserved.
|
|
#
|
|
# This source code is licensed under the BSD-style license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
|
|
from torch.distributed.elastic.utils.logging import get_logger
|
|
|
|
|
|
logger = get_logger(__name__)
|
|
|
|
__all__ = ["log_debug_info_for_expired_timers"]
|
|
|
|
|
|
def log_debug_info_for_expired_timers(
|
|
run_id: str,
|
|
expired_timers: dict[int, list[str]],
|
|
):
|
|
if expired_timers:
|
|
logger.info("Timers expired for run:[%s] [%s].", run_id, expired_timers)
|