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

Function TEST_F

dnn/test/arm_common/cvt_color.cpp:12–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10using Mode = param::CvtColor::Mode;
11
12TEST_F(ARM_COMMON, CVTCOLOR) {
13 using namespace cvt_color;
14 std::vector<TestArg> args = get_args();
15 Checker<CvtColor> checker(handle());
16
17 for (auto&& arg : args) {
18 checker.set_param(arg.param)
19 .set_dtype(0, arg.dtype)
20 .set_dtype(1, arg.dtype)
21 .execs({arg.src, {}});
22 }
23}
24
25#if MEGDNN_WITH_BENCHMARK
26TEST_F(ARM_COMMON, BENCHMARK_CVTCOLOR_RGB2GRAY) {

Callers

nothing calls this directly

Calls 6

set_dtypeMethod · 0.80
get_argsFunction · 0.50
runFunction · 0.50
execsMethod · 0.45
getMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected