class_docstr: Stats for Graphcore IPU devices.
class_docstr_tok: ["Stats","for","Graphcore","IPU","devices","."]
code: def aggregate(self) -> dict:
      if not self.samples:
          return {}
      stats = {}
      for key in self.samples[0].keys():
          samples = [s[key] for s in self.samples if key in s]
          aggregate = aggregate_mean(samples)
          stats[key] = aggregate
      return stats
  
file_path: wandb/wandb/sdk/internal/system/assets/ipu.py
imports: import threading
  from collections import deque
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set, Tuple, Union
  import wandb
  from .aggregators import aggregate_mean
  from .asset_registry import asset_registry
  from .interfaces import Interface, Metric, MetricsMonitor
label_desc: Use image node_id 5 for calling the IPUStats obj's underlying member method code with example usage: obj.aggregate() and returns: stats, dict