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

Function TEST_F

dnn/test/cuda/dct.cpp:11–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace test {
10
11TEST_F(CUDA, DCT) {
12 DctChannelSelectForward::Param param;
13 Checker<DctChannelSelectForward> checker(handle_cuda());
14 for (size_t n : {1, 3}) {
15 for (size_t ic : {1, 3}) {
16 for (size_t ih : {8, 16, 32, 512, 1024}) {
17 for (size_t iw : {8, 16, 32, 64, 128, 256, 512, 1024}) {
18 checker.set_param(param)
19 .set_dtype(0, dtype::Uint8())
20 .set_dtype(1, dtype::Int32())
21 .set_dtype(2, dtype::Int32())
22 .execs({TensorShape{n, ic, ih, iw}, {}, {}, {}});
23 }
24 }
25 }
26 }
27}
28
29TEST_F(CUDA, DCT_QINT8) {
30 DctChannelSelectForward::Param param;

Callers

nothing calls this directly

Calls 10

gen_dct_caseFunction · 0.85
TensorValueFunction · 0.85
gen_dct_constriantFunction · 0.85
set_dtypeMethod · 0.80
exectMethod · 0.80
runFunction · 0.50
execsMethod · 0.45
gen_single_valMethod · 0.45
execMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected