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

Function TEST

src/opr/test/dnn/convolution.cpp:297–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295#endif
296
297TEST(TestOprDNN, ConvolutionForward) {
298 uint32_t ih = 10, ic = 16, oc = 32, ph = 0, sh = 1, fh = 2;
299 for (auto mode : modes_to_check) {
300 uint32_t iw = ih + 1, fw = fh + 1, pw = ph + 1, sw = sh + 1;
301 Param param{mode, ph, pw, sh, sw};
302 size_t batch_size = 32;
303 // !!! DEPRECATED. use AutoOprChecker instead.
304 opr::test::ForwardChecker<opr::Convolution, 2> forward_checker(
305 {{batch_size, ic, ih, iw}, {oc, ic, fh, fw}}, convolution_brute, param);
306 forward_checker.run();
307 }
308}
309
310TEST(TestOprDNN, ConvolutionBackward) {
311 uint32_t ih = 10, ic = 16, oc = 32, ph = 0, sh = 1, fh = 2;

Callers

nothing calls this directly

Calls 15

instFunction · 0.85
make_callback_copyFunction · 0.85
make_deconvFunction · 0.85
conv_bwd_data_bruteFunction · 0.85
conv_bwd_flt_bruteFunction · 0.85
convolution_bruteFunction · 0.85
FOR3Function · 0.85
convert_to_conv_paramFunction · 0.85
output_fileFunction · 0.85
local_share_bruteFunction · 0.85
subFunction · 0.85
make_funcFunction · 0.85

Tested by

no test coverage detected