(self, graph: BaseGraph)
| 602 | hooks=hooks) |
| 603 | |
| 604 | def load_graph(self, graph: BaseGraph) -> dict: |
| 605 | super().load_graph(graph) |
| 606 | self._deployed = False |
| 607 | self._runnable_graph = RunnableGraph(self._graph) |
| 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 |
no test coverage detected