MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / cmd

Method cmd

tools/evaluation_model_parallelism.py:45–54  ·  view source on GitHub ↗
(self, cmd)

Source from the content-addressed store, hash-verified

43 subprocess.check_call(cmd, shell=True)
44
45 def cmd(self, cmd):
46 output = ""
47 assert isinstance(cmd, list), "code issue happened!!"
48 for sub_cmd in cmd:
49 p_cmd = 'ssh -p {} {}@{} "{}" '.format(
50 self.port, self.login_name, self.ip, sub_cmd
51 )
52 logging.debug("ssh run cmd: {}".format(p_cmd))
53 output = output + subprocess.check_output(p_cmd, shell=True).decode("utf-8")
54 return output
55
56
57def get_finally_bench_resulut_from_log(raw_log) -> float:

Callers 1

mainFunction · 0.95

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected