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

Function write_schema

devtools/bundled_program/serialize/__init__.py:29–34  ·  view source on GitHub ↗
(d: str, schema_name: str)

Source from the content-addressed store, hash-verified

27
28
29def write_schema(d: str, schema_name: str) -> None:
30 schema_path = os.path.join(d, "{}.fbs".format(schema_name))
31 with open(schema_path, "wb") as schema_file:
32 schema_file.write(
33 _resources.read_binary(serialization_package, f"{schema_name}.fbs")
34 )
35
36
37def serialize_from_bundled_program_to_json(

Callers 2

convert_to_flatbufferFunction · 0.85
convert_from_flatbufferFunction · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected