MCPcopy Create free account
hub / github.com/Sense-GVT/DeCLIP / reset

Method reset

prototype/utils/misc.py:29–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27 self.reset()
28
29 def reset(self):
30 if self.length > 0:
31 self.history = []
32 else:
33 self.count = 0
34 self.sum = 0.0
35 self.val = 0.0
36 self.avg = 0.0
37
38 def reduce_update(self, tensor, num=1):
39 link.allreduce(tensor)

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected