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

Function TEST_F

dnn/test/cuda/convolution3d.cpp:16–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15#if 0
16TEST_F(CUDA, CONVOLUTION3D_8X8X32) {
17 if (!check_compute_capability(6, 1)) {
18 printf("Skip CUDA.CONVOLUTION_8X8X32 test as current device"
19 "doesn't support\n");
20 return;
21 }
22 using namespace convolution3d;
23 std::vector<TestArg> args;
24 {
25 auto v = get_args();
26 for (auto&& a : v) {
27 args.push_back(std::move(a));
28 }
29 }
30 /*
31 {
32 auto v = get_dilated_args();
33 for (auto &&a: v) {
34 args.push_back(std::move(a));
35 }
36 }
37 {
38 auto v = get_chanwise_args();
39 for (auto &&a: v) {
40 args.push_back(std::move(a));
41 }
42 }
43 */
44 Checker<Convolution3DForward> checker(handle_cuda());
45 UniformIntRNG rng(-4, 4);
46 UniformIntRNG rng_same(1, 1);
47 for (auto arg : args) {
48 arg.param.format = param::Convolution3D::Format::NDHWC;
49 arg.param.data_type = param::Convolution3D::DataType::INT8x8x32;
50 arg.src = cvt_src_or_dst_ncdhw2ndhwc(arg.src);
51 arg.filter = cvt_filter_ncdhw2ndhwc(arg.filter);
52 checker.set_dtype(0, dtype::Int8())
53 .set_dtype(1, dtype::Int8())
54 .set_dtype(2, dtype::Int32())
55 .set_param(arg.param)
56 .set_rng(0, &rng)
57 .set_rng(1, &rng)
58 .execs({arg.src, arg.filter, {}});
59 }
60}
61#endif
62
63TEST_F(CUDA, CONVOLUTION3D_FORWARD) {

Callers

nothing calls this directly

Calls 15

check_compute_capabilityFunction · 0.85
cvt_filter_ncdhw2ndhwcFunction · 0.85
TensorLayoutClass · 0.85
get_chanwise_argsFunction · 0.85
set_dtypeMethod · 0.80
get_argsFunction · 0.50
sqrtFunction · 0.50
push_backMethod · 0.45
execsMethod · 0.45
total_nr_elemsMethod · 0.45
execlMethod · 0.45

Tested by

no test coverage detected