MCPcopy Create free account
hub / github.com/alibaba/MNN / run_cmd

Function run_cmd

tools/script/modelTest.py:42–50  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

40
41message = ""
42def run_cmd(args):
43 cmd = args[0]
44 for i in range(1, len(args)):
45 cmd += ' ' + args[i]
46 print(cmd)
47 stdout = os.popen(cmd).read()
48 global total_num
49 total_num += 1
50 return stdout
51
52for name in os.listdir(root_dir):
53 if name == '.DS_Store':

Callers 1

modelTest.pyFile · 0.70

Calls 3

rangeFunction · 0.85
printFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected