MCPcopy Create free account
hub / github.com/MegEngine/MegCC / set_config

Method set_config

benchmark/python/src/benchmark.py:59–74  ·  view source on GitHub ↗
(
        self,
        profile_kernel=False,
        benchmark_framework="megcc",
        model=None,
        output_dir=None,
    )

Source from the content-addressed store, hash-verified

57 subprocess.check_call(cmd, shell=True)
58
59 def set_config(
60 self,
61 profile_kernel=False,
62 benchmark_framework="megcc",
63 model=None,
64 output_dir=None,
65 ):
66 if profile_kernel:
67 self.log_level = 0
68 else:
69 self.log_level = 3
70 self.benchmark_framework = benchmark_framework
71 self.output_dir = output_dir
72 self.model = model
73 self.benchmark_exec_func = "{}/install/bin/benchmarker".format(
74 self.benchmark_build_dir)
75
76 def run_local(self):
77 if not os.path.exists(self.output_dir.local_path) or os.path.isfile(

Callers 1

set_config_and_runFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected