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

Method get_pte_buffer

export/export.py:567–577  ·  view source on GitHub ↗

Get the PTE buffer as bytes. Returns: The PTE buffer as bytes Raises: RuntimeError: If the executorch program manager is not initialized

(self)

Source from the content-addressed store, hash-verified

565 return artifact.data
566
567 def get_pte_buffer(self) -> bytes:
568 """
569 Get the PTE buffer as bytes.
570
571 Returns:
572 The PTE buffer as bytes
573
574 Raises:
575 RuntimeError: If the executorch program manager is not initialized
576 """
577 return self.get_executorch_program_manager().buffer
578
579 def save_to_pte(self, output_name: str) -> None:
580 """

Calls 1