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

Method _serialize

backends/cadence/runtime/executor.py:193–208  ·  view source on GitHub ↗
(
        self,
        executorch_program: Union[
            ExecutorchProgram,
            ExecutorchProgramManager,
        ],
        method_test_suites: Sequence[MethodTestSuite],
        bptd: BundledProgramTestData,
    )

Source from the content-addressed store, hash-verified

191 )
192
193 def _serialize(
194 self,
195 executorch_program: Union[
196 ExecutorchProgram,
197 ExecutorchProgramManager,
198 ],
199 method_test_suites: Sequence[MethodTestSuite],
200 bptd: BundledProgramTestData,
201 ) -> bytes:
202 bundled_program = BundledProgram(
203 executorch_program=executorch_program, method_test_suites=method_test_suites
204 )
205 bundled_program_buffer = serialize_from_bundled_program_to_flatbuffer(
206 bundled_program
207 )
208 return bundled_program_buffer

Callers 1

export_modelFunction · 0.95

Tested by

no test coverage detected