torch.distributed.elastic.timer.debug_info_logging 的源代码
#!/usr/bin/env python3 # mypy: allow-untyped-defs # 版权所有 (c) Facebook, Inc. 及其关联公司。 # 所有权利保留。 # # 此源代码受根目录中 LICENSE 文件中规定的 BSD 风格许可协议的许可。从 torch.distributed.elastic.utils.logging 导入 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:
日志器信息:“运行:%s [%s] 的计时器已过期。”