MCPcopy Create free account
hub / github.com/TorchSSL/TorchSSL / reset

Method reset

train_utils.py:175–179  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

173 self.reset()
174
175 def reset(self):
176 self.val = 0
177 self.avg = 0
178 self.sum = 0
179 self.count = 0
180
181 def update(self, val, n=1):
182 self.val = val

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected