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

Function TEST

compiler/test/kernel/opr/arm/resize.cpp:7–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5using namespace megcc::KernelGen;
6
7TEST(AARCH64, Resize) {
8 Checker<ResizeForward> checker(Arch::ARM64);
9 megcc::test::UniformRNG rng(-30, 30);
10 checker.set_rng(0, &rng);
11 checker.set_epsilon(3e-4);
12 megdnn::ResizeForward::Param param;
13 param.format = megdnn::ResizeForward::Param::Format::NCHW;
14 param.imode = megdnn::ResizeForward::Param::InterpolationMode::LINEAR;
15 checker.set_param(param);
16 checker.execs({{1, 1, 5, 6}, {1, 1, 7, 13}});
17 checker.execs({{1, 4, 5, 6}, {1, 4, 9, 12}});
18 checker.execs({{2, 3, 15, 16}, {2, 3, 9, 12}});
19}
20
21#ifdef ENABLE_KERNEL_BENCHMARK
22TEST(AARCH64, BENCHMARK_Resize) {

Callers

nothing calls this directly

Calls 2

printMethod · 0.80
execsMethod · 0.45

Tested by

no test coverage detected