MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / mean

Method mean

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

Source from the content-addressed store, hash-verified

104 return elapsed_
105
106 def mean(self):
107 self.elapsed(reset=False)
108 return trim_mean(self.elapsed_records, 0.1)
109
110 def __init__(self):
111 self.timers = {}

Callers 12

forwardMethod · 0.80
torch_cross_entropyFunction · 0.80
mpu_cross_entropyFunction · 0.80
calc_thresholdFunction · 0.80
write_predictionsFunction · 0.80
get_meanMethod · 0.80
backwardMethod · 0.80
train_batchMethod · 0.80
eval_batchMethod · 0.80
forwardMethod · 0.80
top1gatingFunction · 0.80
top2gatingFunction · 0.80

Calls 2

elapsedMethod · 0.95
trim_meanFunction · 0.85

Tested by 2

torch_cross_entropyFunction · 0.64
mpu_cross_entropyFunction · 0.64