MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / mean

Method mean

deepspeed/utils/timer.py:116–118  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

114 return elapsed_
115
116 def mean(self):
117 self.elapsed(reset=False)
118 return trim_mean(self.elapsed_records, 0.1)
119
120 def __init__(self):
121 self.timers = {}

Callers

nothing calls this directly

Calls 2

elapsedMethod · 0.95
trim_meanFunction · 0.85

Tested by

no test coverage detected