MCPcopy Create free account
hub / github.com/NVIDIA/semantic-segmentation / update

Method update

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

Source from the content-addressed store, hash-verified

494 self.count = 0
495
496 def update(self, val, n=1):
497 self.val = val
498 self.sum += val * n
499 self.count += n
500 self.avg = self.sum / self.count
501
502
503def fmt_scale(prefix, scale):

Callers 6

trainFunction · 0.95
eval_minibatchFunction · 0.80
init_weightsMethod · 0.80
class_centroids_imageFunction · 0.80
forgiving_state_restoreFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected