MCPcopy
hub / github.com/OpenPPL/ppq / restore_quantize_state

Method restore_quantize_state

ppq/IR/quantize.py:320–324  ·  view source on GitHub ↗

一个方便懒人的函数.

(self, expire_device: str = 'cpu')

Source from the content-addressed store, hash-verified

318 operation.dequantize(expire_device=expire_device)
319
320 def restore_quantize_state(self, expire_device: str = 'cpu'):
321 """一个方便懒人的函数."""
322 for operation in self.graph.operations.values():
323 if isinstance(operation, QuantableOperation):
324 operation.restore_quantize_state(expire_device=expire_device)

Callers 5

collectMethod · 0.95
variable_analyseFunction · 0.95
dequantize.pyFile · 0.45
__exit__Method · 0.45
test_block.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected