| 23 | |
| 24 | #if CUDNN_MAJOR > 9 |
| 25 | TEST_F(CUDA, CONVOLUTION_8X8X32) { |
| 26 | require_compute_capability(6, 1); |
| 27 | |
| 28 | using namespace convolution; |
| 29 | std::vector<TestArg> args; |
| 30 | { |
| 31 | auto v = get_args(); |
| 32 | for (auto&& a : v) { |
| 33 | args.push_back(std::move(a)); |
| 34 | } |
| 35 | } |
| 36 | { |
| 37 | auto v = get_dilated_args(); |
| 38 | for (auto&& a : v) { |
| 39 | args.push_back(std::move(a)); |
| 40 | } |
| 41 | } |
| 42 | { |
| 43 | auto v = get_chanwise_args(); |
| 44 | for (auto&& a : v) { |
| 45 | args.push_back(std::move(a)); |
| 46 | } |
| 47 | } |
| 48 | Checker<ConvolutionForward> checker(handle_cuda()); |
| 49 | UniformIntRNG rng(-4, 4); |
| 50 | for (auto arg : args) { |
| 51 | arg.param.format = param::Convolution::Format::NHWC; |
| 52 | arg.src = cvt_src_or_dst_nchw2nhwc(arg.src); |
| 53 | arg.filter = cvt_filter_nchw2nhwc(arg.filter); |
| 54 | checker.set_dtype(0, dtype::Int8()) |
| 55 | .set_dtype(1, dtype::Int8()) |
| 56 | .set_dtype(2, dtype::Int32()) |
| 57 | .set_param(arg.param) |
| 58 | .set_rng(0, &rng) |
| 59 | .set_rng(1, &rng) |
| 60 | .execs({arg.src, arg.filter, {}}); |
| 61 | } |
| 62 | } |
| 63 | #endif |
| 64 | |
| 65 | TEST_F(CUDA, CONVOLUTION_FORWARD) { |
nothing calls this directly
no test coverage detected