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

Function run_external_cmd

backends/arm/test/test_model.py:113–122  ·  view source on GitHub ↗
(cmd: Sequence[str])

Source from the content-addressed store, hash-verified

111
112
113def run_external_cmd(cmd: Sequence[str]) -> None:
114 print("CALL:", *cmd, sep=" ")
115 try:
116 subprocess.check_call(
117 cmd
118 ) # nosec B603 - cmd assembled from vetted scripts/flags
119 except subprocess.CalledProcessError as err:
120 print("ERROR called: ", *cmd, sep=" ")
121 print(f"Failed with: {err.returncode}")
122 sys.exit(err.returncode)
123
124
125def build_libs(et_build_root: str, script_path: str):

Callers 6

build_libsFunction · 0.85
build_pteFunction · 0.85
build_ethosu_runtimeFunction · 0.85
run_elf_with_fvpFunction · 0.85
build_vkml_runtimeFunction · 0.85
run_vkmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected