Source code for torch.distributed.elastic.timer.debug_info_logging
#!/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.fromtypingimportDict,Listfromtorch.distributed.elastic.utils.loggingimportget_loggerlogger=get_logger(__name__)__all__=["log_debug_info_for_expired_timers"]
[docs]deflog_debug_info_for_expired_timers(run_id:str,expired_timers:Dict[int,List[str]],):ifexpired_timers:logger.info("Timers expired for run:[%s] [%s].",run_id,expired_timers)
Docs
Access comprehensive developer documentation for PyTorch
To analyze traffic and optimize your experience, we serve cookies on this site. By clicking or navigating, you agree to allow our usage of cookies. As the current maintainers of this site, Facebook’s Cookies Policy applies. Learn more, including about available controls: Cookies Policy.