一个方便懒人的函数.
(self, expire_device: str = 'cpu')
| 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 | """一个方便懒人的函数.""" |
no test coverage detected