Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
forward
Method · 0.80
torch_cross_entropy
Function · 0.80
mpu_cross_entropy
Function · 0.80
calc_threshold
Function · 0.80
write_predictions
Function · 0.80
get_mean
Method · 0.80
backward
Method · 0.80
train_batch
Method · 0.80
eval_batch
Method · 0.80
forward
Method · 0.80
top1gating
Function · 0.80
top2gating
Function · 0.80
Calls
2
elapsed
Method · 0.95
trim_mean
Function · 0.85
Tested by
2
torch_cross_entropy
Function · 0.64
mpu_cross_entropy
Function · 0.64