MCPcopy Create free account
hub / github.com/NVIDIA/DALI / update

Method update

dali/test/python/test_utils.py:719–724  ·  view source on GitHub ↗
(self, val, n=1)

Source from the content-addressed store, hash-verified

717 self.max_val = 0
718
719 def update(self, val, n=1):
720 self.val = val
721 self.max_val = max(self.max_val, val)
722 self.sum += val * n
723 self.count += n
724 self.avg = self.sum / self.count
725
726
727def to_array(dali_out):

Callers 5

training_testFunction · 0.95
iteration_testFunction · 0.95
register_testMethod · 0.45

Calls 1

maxFunction · 0.50

Tested by

no test coverage detected