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

Function _write_schema

devtools/etdump/serialize.py:25–28  ·  view source on GitHub ↗
(d: str, schema_name: str)

Source from the content-addressed store, hash-verified

23
24
25def _write_schema(d: str, schema_name: str) -> None:
26 schema_path = os.path.join(d, "{}.fbs".format(schema_name))
27 with open(schema_path, "wb") as schema_file:
28 schema_file.write(_resources.read_binary(etdump_package, f"{schema_name}.fbs"))
29
30
31def _serialize_from_etdump_to_json(etdump: ETDumpFlatCC) -> str:

Callers 2

_convert_to_flatccFunction · 0.85
_convert_from_flatccFunction · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected