| 295 | #endif |
| 296 | |
| 297 | TEST(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 | |
| 310 | TEST(TestOprDNN, ConvolutionBackward) { |
| 311 | uint32_t ih = 10, ic = 16, oc = 32, ph = 0, sh = 1, fh = 2; |
nothing calls this directly
no test coverage detected