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

Method update

project_utils/cluster_utils.py:129–133  ·  view source on GitHub ↗
(self, val, n=1)

Source from the content-addressed store, hash-verified

127 self.count = 0
128
129 def update(self, val, n=1):
130 self.val = val
131 self.sum += val * n
132 self.count += n
133 self.avg = self.sum / self.count
134
135
136class Identity(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected