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

Method dequantize_operation

ppq/IR/quantize.py:304–312  ·  view source on GitHub ↗
(
        self,
        operation_name: str
    )

Source from the content-addressed store, hash-verified

302 quantized_operation.store_parameter_value()
303
304 def dequantize_operation(
305 self,
306 operation_name: str
307 ) -> Operation:
308 if operation_name not in self.graph.operations:
309 raise KeyError(f'Operation {operation_name} is not in your graph, Please check your input.')
310 operation = self._graph.operations[operation_name]
311 if not isinstance(operation, QuantableOperation): return operation
312 else: return operation.dequantize()
313
314 def dequantize_graph(self, expire_device: str = 'cpu'):
315 """一个方便懒人的函数."""

Callers

nothing calls this directly

Calls 1

dequantizeMethod · 0.80

Tested by

no test coverage detected