MCPcopy Create free account
hub / github.com/TPCD/DCCL / reset

Method reset

project_utils/cluster_utils.py:123–127  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

121 self.reset()
122
123 def reset(self):
124 self.val = 0
125 self.avg = 0
126 self.sum = 0
127 self.count = 0
128
129 def update(self, val, n=1):
130 self.val = val

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected