Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
89
def
_serialize_program(program: Program) -> bytes:
90
return
bytes(serialize_pte_binary(PTEFile(program=program)))
91
92
93
class
DiffPteTest(unittest.TestCase):
Callers
15
test_bitwise_equal
Method · 0.85
test_different_weights
Method · 0.85
test_different_operators
Method · 0.85
test_different_evalue_int
Method · 0.85
test_different_evalue_type
Method · 0.85
test_tensor_metadata_diff
Method · 0.85
test_tensor_allocation_info_diff
Method · 0.85
test_format_output_equal
Method · 0.85
test_format_output_different
Method · 0.85
test_format_evalue_diff
Method · 0.85
test_format_metadata_diff
Method · 0.85
test_identical_programs_different_serialization
Method · 0.85
Calls
2
serialize_pte_binary
Function · 0.90
PTEFile
Class · 0.90
Tested by
no test coverage detected