MCPcopy Index your code
hub / github.com/OpenPPL/ppq / dequantize_graph

Method dequantize_graph

ppq/IR/quantize.py:314–318  ·  view source on GitHub ↗

一个方便懒人的函数.

(self, expire_device: str = 'cpu')

Source from the content-addressed store, hash-verified

312 else: return operation.dequantize()
313
314 def dequantize_graph(self, expire_device: str = 'cpu'):
315 """一个方便懒人的函数."""
316 for operation in self.graph.operations.values():
317 if isinstance(operation, QuantableOperation):
318 operation.dequantize(expire_device=expire_device)
319
320 def restore_quantize_state(self, expire_device: str = 'cpu'):
321 """一个方便懒人的函数."""

Callers 2

collectMethod · 0.95
variable_analyseFunction · 0.95

Calls 1

dequantizeMethod · 0.80

Tested by

no test coverage detected