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

Function _run_flatc

exir/_serialize/_flatbuffer.py:324–330  ·  view source on GitHub ↗

Runs the `flatc` command with the provided args. If a resource matching _FLATC_RESOURCE_NAME exists, uses that executable. Otherwise, expects the `flatc` tool to be available on the system path.

(args: Sequence[str])

Source from the content-addressed store, hash-verified

322
323
324def _run_flatc(args: Sequence[str]) -> None:
325 """Runs the `flatc` command with the provided args.
326
327 If a resource matching _FLATC_RESOURCE_NAME exists, uses that executable.
328 Otherwise, expects the `flatc` tool to be available on the system path.
329 """
330 subprocess.run([_get_flatc_path()] + list(args), check=True)
331
332
333def _flatc_compile(output_dir: str, schema_path: str, json_path: str) -> None:

Callers 2

_flatc_compileFunction · 0.70
_flatc_decompileFunction · 0.70

Calls 2

_get_flatc_pathFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected