| 177 | #if MGB_CUDA |
| 178 | #if MGB_ENABLE_FASTRUN |
| 179 | TEST(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 | |
| 198 | TEST(TestOprDNN, FastrunIgnoreBatchSizeConvBias) { |
| 199 | REQUIRE_GPU(1); |
nothing calls this directly
no test coverage detected