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

Function TEST

compiler/test/kernel/opr/arm/benchmark_cv.cpp:8–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#ifdef ENABLE_KERNEL_BENCHMARK
7
8TEST(AARCH64, CVBenchmarkresize) {
9 Benchmarker<CVResize> benchmarker(Arch::ARM64);
10 megdnn::CVResize::Param param;
11 param.format = megdnn::CVResize::Param::Format::NHWC;
12 param.imode = megdnn::CVResize::Param::InterpolationMode::LINEAR;
13 benchmarker.set_param(param);
14 benchmarker.set_dtype(0, dtype::Uint8());
15 benchmarker.set_dtype(1, dtype::Uint8());
16
17 benchmarker.execs({{1, 1080, 1920, 3}, {1, 720, 1280, 3}}).print();
18 benchmarker.execs({{1, 1080, 1920, 1}, {1, 720, 1280, 1}}).print();
19 benchmarker.execs({{1, 1080, 1920, 2}, {1, 720, 1280, 2}}).print();
20}
21
22TEST(AARCH64, CVBenchmarkWarpAffine) {
23 Benchmarker<CVWarpAffine> benchmarker(Arch::ARM64);

Callers

nothing calls this directly

Calls 3

printMethod · 0.80
execsMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected