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

Function TEST_F

dnn/test/fallback/resize.cpp:8–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace test {
7
8TEST_F(FALLBACK, RESIZE_CV) {
9 using namespace resize;
10 std::vector<TestArg> args = get_cv_args();
11 Checker<Resize> checker(handle());
12
13 for (auto&& arg : args) {
14 checker.set_param(arg.param)
15 .set_dtype(0, dtype::Uint8())
16 .set_dtype(1, dtype::Uint8())
17 .set_epsilon(1 + 1e-3)
18 .execs({arg.src, arg.dst});
19 }
20
21 for (auto&& arg : args) {
22 checker.set_param(arg.param)
23 .set_dtype(0, dtype::Float32())
24 .set_dtype(1, dtype::Float32())
25 .execs({arg.src, arg.dst});
26 }
27}
28TEST_F(FALLBACK, RESIZE_CV_RECORD) {
29 using namespace resize;
30 std::vector<TestArg> args = get_cv_args();

Callers

nothing calls this directly

Calls 9

get_nchw4_argsFunction · 0.85
get_nchw44_argsFunction · 0.85
set_dtypeMethod · 0.80
set_nchw_argsFunction · 0.70
get_cv_argsFunction · 0.50
get_argsFunction · 0.50
runFunction · 0.50
execsMethod · 0.45
execlMethod · 0.45

Tested by

no test coverage detected