| 81 | |
| 82 | #if CUDNN_VERSION >= 7400 |
| 83 | TEST_F(CUDA, CONV_BIAS_FORWARD_F32) { |
| 84 | using namespace conv_bias; |
| 85 | std::vector<TestArg> args = get_args(); |
| 86 | Checker<ConvBiasForward> checker(handle_cuda()); |
| 87 | |
| 88 | NormalRNG default_rng; |
| 89 | for (auto&& arg : args) { |
| 90 | checker.set_dtype(0, dtype::Float32()) |
| 91 | .set_dtype(1, dtype::Float32()) |
| 92 | .set_dtype(2, dtype::Float32()) |
| 93 | .set_rng(0, &default_rng) |
| 94 | .set_rng(1, &default_rng) |
| 95 | .set_rng(2, &default_rng) |
| 96 | .set_epsilon(1e-3) |
| 97 | .set_param(arg.param) |
| 98 | .execs({arg.src, arg.filter, arg.bias, {}, {}}); |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | TEST_F(CUDA, CONV_BIAS_FORWARD_BF16) { |
| 103 | using namespace conv_bias; |
nothing calls this directly
no test coverage detected