class_docstr: Base class to measure various metrics during training and testing phases.
  
  This can include meters like  Accuracy, Precision and Recall, etc.
class_docstr_tok: ["Base","class","to","measure","various","metrics","during","training","and","testing","phases",".","This","can","include","meters","like","Accuracy",",","Precision","and","Recall",",","etc","."]
docstr: Syncs state with all other meters in distributed training.
  
  If not provided by child class this does nothing by default
  and meter only provides the local process stats. If
  implemented then the meter provides the global stats at last
  sync + any local updates since the last sync.
  
  Warning:
      Calls to sync_state could involve communications via
      :mod:`torch.distributed` which can result in a loss of performance or
      deadlocks if not coordinated among threads.
docstr_tok: ["Syncs","state","with","all","other","meters","in","distributed","training",".","If","not","provided","by","child","class","this","does","nothing","by","default","and","meter","only","provides","the","local","process","stats",".","If","implemented","then","the","meter","provides","the","global","stats","at","last","sync","+","any","local","updates","since","the","last","sync",".","Warning",":","Calls","to","sync_state","could","involve","communications","via",":","mod",":","`","torch.distributed","`","which","can","result","in","a","loss","of","performance","or","deadlocks","if","not","coordinated","among","threads","."]
code: def sync_state(self) -> None:
      """
      Syncs state with all other meters in distributed training.
  
      If not provided by child class this does nothing by default
      and meter only provides the local process stats. If
      implemented then the meter provides the global stats at last
      sync + any local updates since the last sync.
  
      Warning:
          Calls to sync_state could involve communications via
          :mod:`torch.distributed` which can result in a loss of performance or
          deadlocks if not coordinated among threads.
      """
      pass
  
file_path: ClassyVision/classy_vision/meters/classy_meter.py
imports: from typing import Any, Dict, Tuple
  import torch
  from classy_vision.generic.util import log_class_usage
label_desc: Use image node_id 5 for calling the ClassyMeter obj's underlying member method code with example usage: obj.sync_state() without return types