Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/PaddlePaddle/PaddleOCR
/ update
Method
update
ppocr/utils/utility.py:211–216 ·
view source on GitHub ↗
update
(self, val, n=1)
Source
from the content-addressed store, hash-verified
209
self.count = 0
210
211
def
update(self, val, n=1):
212
""
"update"
""
213
self.val = val
214
self.sum += val * n
215
self.count += n
216
self.avg = self.sum / self.count
Callers
1
train
Function · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected