| 608 | self._runnable_graph(GraphDeployCommand(device=self._device)) |
| 609 | |
| 610 | def quantize_function(self, tensor: torch.Tensor, config: TensorQuantizationConfig = None) -> torch.Tensor: |
| 611 | if config is None or not QuantizationStates.is_activated(config.state): return tensor |
| 612 | elif config in self._delegates: return self._delegates[config](tensor, config) |
| 613 | else: return self._default_quant_fn(tensor, config) |
| 614 | |
| 615 | def dummy_forward(self, hooks: Dict[str, RuntimeHook] = None) -> None: |
| 616 | """This function allows you to execute entire graph without feeding any |