MCPcopy
hub / github.com/open-mmlab/OpenPCDet / update

Method update

pcdet/utils/common_utils.py:261–265  ·  view source on GitHub ↗
(self, val, n=1)

Source from the content-addressed store, hash-verified

259 self.count = 0
260
261 def update(self, val, n=1):
262 self.val = val
263 self.sum += val * n
264 self.count += n
265 self.avg = self.sum / self.count

Callers 15

train_one_epochFunction · 0.95
eval_one_epochFunction · 0.80
merge_new_configFunction · 0.80
find_all_spconv_keysFunction · 0.80
__setstate__Method · 0.80
__setstate__Method · 0.80
__setstate__Method · 0.80
__getitem__Method · 0.80
get_label_annoFunction · 0.80
fill_trainval_infosFunction · 0.80
__getitem__Method · 0.80
process_single_sequenceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected