MCPcopy
hub / github.com/d2l-ai/d2l-zh / avg

Method avg

d2l/mxnet.py:118–120  ·  view source on GitHub ↗

Return the average time.

(self)

Source from the content-addressed store, hash-verified

116 return self.times[-1]
117
118 def avg(self):
119 """Return the average time."""
120 return sum(self.times) / len(self.times)
121
122 def sum(self):
123 """Return the sum of time."""

Callers 2

train_ch11Function · 0.45
train_concise_ch11Function · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected