MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / update

Method update

python/paddle/static/quantization/utils.py:281–287  ·  view source on GitHub ↗
(self, n=1)

Source from the content-addressed store, hash-verified

279 self.n = 0
280
281 def update(self, n=1):
282 self.n += n
283 a = "=" * round((self.n / self.total) * self.ncols)
284 b = " " * (self.ncols - len(a))
285 prefix = self.bar_format.split('|')[0]
286 sys.stderr.write(f"\r{prefix}|{a}=>{b}| {self.n}/{self.total}")
287 sys.stderr.flush()
288
289 def __enter__(self):
290 return self

Callers 11

sumFunction · 0.45
load_program_stateFunction · 0.45
applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45
_update_scalesMethod · 0.45
quant_config.pyFile · 0.45
_parse_configsFunction · 0.45
quantizeMethod · 0.45

Calls 4

roundFunction · 0.50
splitMethod · 0.45
writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected