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

Function run_cmd

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

Source from the content-addressed store, hash-verified

6
7import os
8def run_cmd(args):
9 from subprocess import Popen, PIPE, STDOUT
10 stdout, _ = Popen(args, stdout=PIPE, stderr=STDOUT).communicate()
11 return stdout
12
13for name in os.listdir(root_dir):
14 modelName = os.path.join(root_dir, name, 'temp.bin')

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected