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

Method _get_pte_data

exir/program/_program.py:610–623  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

608 return self._emitter_output
609
610 def _get_pte_data(self) -> Cord:
611 if self._pte_data is None:
612 self._pte_data, self._tensor_data = serialize_for_executorch(
613 self._get_emitter_output(),
614 ExecutorchBackendConfig(
615 extract_delegate_segments=self._extract_delegate_segments,
616 segment_alignment=self._segment_alignment,
617 constant_tensor_alignment=self._constant_tensor_alignment,
618 delegate_alignment=self._delegate_alignment,
619 ),
620 self._data_serializer,
621 )
622 assert self._pte_data is not None
623 return self._pte_data
624
625 @property
626 def buffer(self) -> bytes:

Callers 3

bufferMethod · 0.95
data_filesMethod · 0.95
write_to_fileMethod · 0.95

Calls 3

_get_emitter_outputMethod · 0.95
serialize_for_executorchFunction · 0.90

Tested by

no test coverage detected