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

Function get_tool_output

scripts/check_binary_dependencies.py:86–90  ·  view source on GitHub ↗

Execute a command in the shell and return the output.

(args: List[str])

Source from the content-addressed store, hash-verified

84
85
86def get_tool_output(args: List[str]) -> str:
87 """Execute a command in the shell and return the output."""
88 result = subprocess.run(args, stdout=subprocess.PIPE)
89 output = result.stdout.decode("utf-8")
90 return output
91
92
93def read_nm(

Callers 4

read_nmFunction · 0.85
get_elf_dependenciesFunction · 0.85
demangle_symbolsFunction · 0.85

Calls 2

runMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected