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

Function _program_to_json

exir/_serialize/_program.py:84–86  ·  view source on GitHub ↗

Returns the JSON representation of the given Program.

(program: Program)

Source from the content-addressed store, hash-verified

82
83
84def _program_to_json(program: Program) -> str:
85 """Returns the JSON representation of the given Program."""
86 return json.dumps(program, cls=_DataclassEncoder)
87
88
89def _json_to_program(program_json: bytes) -> Program:

Callers 2

assert_programs_equalMethod · 0.90

Calls

no outgoing calls

Tested by 2

assert_programs_equalMethod · 0.72