MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / _serialize_program

Function _serialize_program

python/paddle/static/io.py:362–366  ·  view source on GitHub ↗

serialize given program to bytes.

(program: Program, legacy_format: bool = False)

Source from the content-addressed store, hash-verified

360
361
362def _serialize_program(program: Program, legacy_format: bool = False) -> bytes:
363 """
364 serialize given program to bytes.
365 """
366 return program.desc.serialize_to_string(legacy_format=legacy_format)
367
368
369@static_only

Callers 2

serialize_programFunction · 0.85
save_inference_modelFunction · 0.85

Calls 1

serialize_to_stringMethod · 0.45

Tested by

no test coverage detected