MCPcopy
hub / github.com/showlab/ShowUI / __init__

Method __init__

utils/utils.py:71–75  ·  view source on GitHub ↗
(self, name, fmt=":f", summary_type=Summary.AVERAGE)

Source from the content-addressed store, hash-verified

69 """Computes and stores the average and current value"""
70
71 def __init__(self, name, fmt=":f", summary_type=Summary.AVERAGE):
72 self.name = name
73 self.fmt = fmt
74 self.summary_type = summary_type
75 self.reset()
76
77 def reset(self):
78 self.val = 0

Callers

nothing calls this directly

Calls 1

resetMethod · 0.95

Tested by

no test coverage detected