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

Function _serialize_program

devtools/pte_tool/tests/test_diff_pte.py:89–90  ·  view source on GitHub ↗
(program: Program)

Source from the content-addressed store, hash-verified

87
88
89def _serialize_program(program: Program) -> bytes:
90 return bytes(serialize_pte_binary(PTEFile(program=program)))
91
92
93class DiffPteTest(unittest.TestCase):

Calls 2

serialize_pte_binaryFunction · 0.90
PTEFileClass · 0.90

Tested by

no test coverage detected