(
self,
operation_name: str
)
| 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 | """一个方便懒人的函数.""" |
nothing calls this directly
no test coverage detected