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

Function run_cmd

tools/script/modelTestForAndroid.py:6–11  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

4import sys
5
6def run_cmd(args):
7 cmd = args[0]
8 for i in range(1, len(args)):
9 cmd += ' ' + args[i]
10 stdout = os.popen(cmd).read()
11 return stdout
12
13gWrong = []
14gRight = 0

Callers 1

testFunction · 0.70

Calls 2

rangeFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected