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

Method Benchmarker

compiler/test/kernel/common/benchmark.h:25–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 using Param = typename Opr::Param;
24 using BeforeExecCallback = std::function<void(Opr*, const TensorNDArray&)>;
25 Benchmarker(
26 KernelGen::Arch arch = KernelGen::Arch::BAREMETAL, const int dnn_level = 0)
27 : Runner<Opr>(arch, dnn_level),
28 m_has_set_dnn_param(false),
29 m_arch(arch),
30 m_kernel_symbol(".*") {
31 m_benchmark_option.disable_check = true;
32 m_benchmark_option.valid_megcc_performance = true;
33 m_benchmark_option.valid_dnn_performance = true;
34 };
35
36 TensorLayoutArray make_layouts(const TensorShapeArray& shapes);
37 PerformanceResultPair exec(const TensorShapeArray& shapes) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected