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

Function TEST

src/opr/test/algo_chooser.cpp:179–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177#if MGB_CUDA
178#if MGB_ENABLE_FASTRUN
179TEST(TestOprDNN, FastrunIgnoreBatchSizeConvolution) {
180 REQUIRE_GPU(1);
181 test_fastrun_opr<opr::Convolution, 2>(
182 {TensorShape{12, 3, 36, 36}, TensorShape{4, 3, 3, 3}},
183 {TensorShape{1, 3, 36, 36}, TensorShape{4, 3, 3, 3}});
184
185 test_fastrun_opr<opr::ConvolutionBackwardData, 3>(
186 {TensorShape{4, 5, 3, 2}, TensorShape{12, 4, 23, 29},
187 TensorShape{12, 5, 25, 30}},
188 {TensorShape{4, 5, 3, 2}, TensorShape{2, 4, 23, 29},
189 TensorShape{2, 5, 25, 30}});
190
191 test_fastrun_opr<opr::ConvolutionBackwardFilter, 3>(
192 {TensorShape{12, 4, 23, 29}, TensorShape{12, 5, 21, 28},
193 TensorShape{5, 4, 3, 2}},
194 {TensorShape{2, 4, 23, 29}, TensorShape{2, 5, 21, 28},
195 TensorShape{5, 4, 3, 2}});
196}
197
198TEST(TestOprDNN, FastrunIgnoreBatchSizeConvBias) {
199 REQUIRE_GPU(1);

Callers

nothing calls this directly

Calls 11

OperatorNodeConfigClass · 0.85
emplace_backMethod · 0.80
renameMethod · 0.80
resizeMethod · 0.80
makeFunction · 0.70
loadFunction · 0.50
genFunction · 0.50
compileMethod · 0.45
waitMethod · 0.45
executeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected