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

Function TEST_F

dnn/test/fallback/convolution.cpp:14–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace megdnn {
13namespace test {
14TEST_F(FALLBACK, CONVOLUTION_MATRIX_MUL_RECORD) {
15 using Param = Convolution::Param;
16 TaskRecordChecker<Convolution> checker(1);
17 NormalRNG default_rng;
18 UniformIntRNG int_rng{-50, 50};
19 Param param;
20 param.stride_h = 2;
21 param.stride_w = 2;
22 param.pad_h = 3 / 2;
23 param.pad_w = 3 / 2;
24 param.pad_h = 0;
25 param.pad_w = 0;
26 checker.set_dtype(0, dtype::Float32())
27 .set_dtype(1, dtype::Float32())
28 .set_rng(0, &default_rng)
29 .set_rng(1, &default_rng)
30 .set_param(param)
31 .execs({{1, 3, 20, 40}, {24, 3, 3, 3}, {}});
32}
33} // namespace test
34} // namespace megdnn
35#if MEGDNN_WITH_BENCHMARK

Callers

nothing calls this directly

Calls 9

profileFunction · 0.85
set_dtypeMethod · 0.80
runFunction · 0.50
execsMethod · 0.45
execMethod · 0.45
paramMethod · 0.45
deduce_layoutMethod · 0.45
total_nr_elemsMethod · 0.45
execlMethod · 0.45

Tested by

no test coverage detected