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

Function TEST_F

dnn/test/arm_common/resize.cpp:25–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25TEST_F(ARM_COMMON, RESIZE_CV) {
26 std::vector<TestArg> args = get_cv_args();
27 Checker<Resize> checker(handle());
28
29 for (auto&& arg : args) {
30 checker.set_param(arg.param)
31 .set_epsilon(1 + 1e-3)
32 .set_dtype(0, dtype::Uint8())
33 .set_dtype(1, dtype::Uint8())
34 .execs({arg.src, arg.dst});
35 }
36
37 for (auto&& arg : args) {
38 checker.set_param(arg.param)
39 .set_dtype(0, dtype::Float32())
40 .set_dtype(1, dtype::Float32())
41 .execs({arg.src, arg.dst});
42 }
43}
44
45TEST_F(ARM_COMMON, RESIZE_CV_RECORD) {
46 std::vector<TestArg> args = get_cv_args();

Callers

nothing calls this directly

Calls 6

get_nchw44_argsFunction · 0.85
get_nchw88_argsFunction · 0.85
set_dtypeMethod · 0.80
set_nchw_argsFunction · 0.70
get_cv_argsFunction · 0.50
execsMethod · 0.45

Tested by

no test coverage detected