class_docstr: Logs the loss, optimizer LR, and meters. Logs at the end of a phase.
docstr: Log the loss, optimizer LR, and meters for the phase.
code: def on_phase_end(self, task) -> None:
      """
      Log the loss, optimizer LR, and meters for the phase.
      """
      batches = len(task.losses)
      if batches:
          # Most trainers will sync meters on phase end, however we
          # do not explicitly state this since it is possible for a
          # trainer to implement an unsynced end of phase meter or
          # for meters to not provide a sync function.
          self._log_loss_lr_meters(
              task, prefix="Synced meters: ", log_batches=True
          )
  
file_path: ClassyVision/classy_vision/hooks/loss_lr_meter_logging_hook.py
imports: import logging
  from typing import Optional
  from classy_vision.generic.distributed_util import get_rank
  from classy_vision.hooks import register_hook
  from classy_vision.hooks.classy_hook import ClassyHook
label_desc: Use image node_id 3 for calling the LossLrMeterLoggingHook obj's underlying member method code with example usage: obj.on_phase_end(task) without return types