| 14 | |
| 15 | #if 0 |
| 16 | TEST_F(CUDA, CONVOLUTION3D_8X8X32) { |
| 17 | if (!check_compute_capability(6, 1)) { |
| 18 | printf("Skip CUDA.CONVOLUTION_8X8X32 test as current device" |
| 19 | "doesn't support\n"); |
| 20 | return; |
| 21 | } |
| 22 | using namespace convolution3d; |
| 23 | std::vector<TestArg> args; |
| 24 | { |
| 25 | auto v = get_args(); |
| 26 | for (auto&& a : v) { |
| 27 | args.push_back(std::move(a)); |
| 28 | } |
| 29 | } |
| 30 | /* |
| 31 | { |
| 32 | auto v = get_dilated_args(); |
| 33 | for (auto &&a: v) { |
| 34 | args.push_back(std::move(a)); |
| 35 | } |
| 36 | } |
| 37 | { |
| 38 | auto v = get_chanwise_args(); |
| 39 | for (auto &&a: v) { |
| 40 | args.push_back(std::move(a)); |
| 41 | } |
| 42 | } |
| 43 | */ |
| 44 | Checker<Convolution3DForward> checker(handle_cuda()); |
| 45 | UniformIntRNG rng(-4, 4); |
| 46 | UniformIntRNG rng_same(1, 1); |
| 47 | for (auto arg : args) { |
| 48 | arg.param.format = param::Convolution3D::Format::NDHWC; |
| 49 | arg.param.data_type = param::Convolution3D::DataType::INT8x8x32; |
| 50 | arg.src = cvt_src_or_dst_ncdhw2ndhwc(arg.src); |
| 51 | arg.filter = cvt_filter_ncdhw2ndhwc(arg.filter); |
| 52 | checker.set_dtype(0, dtype::Int8()) |
| 53 | .set_dtype(1, dtype::Int8()) |
| 54 | .set_dtype(2, dtype::Int32()) |
| 55 | .set_param(arg.param) |
| 56 | .set_rng(0, &rng) |
| 57 | .set_rng(1, &rng) |
| 58 | .execs({arg.src, arg.filter, {}}); |
| 59 | } |
| 60 | } |
| 61 | #endif |
| 62 | |
| 63 | TEST_F(CUDA, CONVOLUTION3D_FORWARD) { |
nothing calls this directly
no test coverage detected