MCPcopy Create free account
hub / github.com/pytorch/executorch / get_executorch_program_manager

Method get_executorch_program_manager

export/export.py:550–565  ·  view source on GitHub ↗

Get the ExecutorchProgramManager. Returns: The ExecutorchProgramManager Raises: RuntimeError: If the executorch program manager is not initialized

(self)

Source from the content-addressed store, hash-verified

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 """

Calls 1

getMethod · 0.45