Get the ExecutorchProgramManager. Returns: The ExecutorchProgramManager Raises: RuntimeError: If the executorch program manager is not initialized
(self)
| 548 | return self.get_executorch_program_manager().executorch_program |
| 549 | |
| 550 | def get_executorch_program_manager(self) -> ExecutorchProgramManager: |
| 551 | """ |
| 552 | Get the ExecutorchProgramManager. |
| 553 | |
| 554 | Returns: |
| 555 | The ExecutorchProgramManager |
| 556 | |
| 557 | Raises: |
| 558 | RuntimeError: If the executorch program manager is not initialized |
| 559 | """ |
| 560 | artifact = self._stage_to_artifacts.get(StageType.TO_EXECUTORCH) |
| 561 | if artifact is None or artifact.data is None: |
| 562 | raise RuntimeError( |
| 563 | "Executorch program manager is not initialized. Run Executorch Stage first." |
| 564 | ) |
| 565 | return artifact.data |
| 566 | |
| 567 | def get_pte_buffer(self) -> bytes: |
| 568 | """ |