MCPcopy Index your code
hub / github.com/SooLab/CGFormer / update

Method update

utils/misc.py:85–89  ·  view source on GitHub ↗
(self, val, n=1)

Source from the content-addressed store, hash-verified

83 self.count = 0
84
85 def update(self, val, n=1):
86 self.val = val
87 self.sum += val * n
88 self.count += n
89 self.avg = self.sum / self.count
90
91 def __str__(self):
92 if self.name == "Lr":

Callers 4

trainFunction · 0.95
get_torchvision_modelsFunction · 0.45
get_external_modelsFunction · 0.45
save_checkpointFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected