| 849 | : public ::testing::TestWithParam<conv2_strided_params> {}; |
| 850 | |
| 851 | conv2_strided_params conv2_consistency_data(dim4 signal_sz, dim4 filt_sz) { |
| 852 | dim4 stride(1, 1); |
| 853 | dim4 padding(filt_sz[0] / 2, filt_sz[1] / 2); |
| 854 | dim4 dilation(1, 1); |
| 855 | std::string testname = |
| 856 | "conv2_consistency_" + std::to_string(signal_sz[0]) + |
| 857 | std::to_string(signal_sz[1]) + std::to_string(signal_sz[2]) + |
| 858 | std::to_string(signal_sz[3]) + "__" + std::to_string(filt_sz[0]) + |
| 859 | std::to_string(filt_sz[1]) + std::to_string(filt_sz[2]) + |
| 860 | std::to_string(filt_sz[3]) + "__" + "s" + std::to_string(stride[0]) + |
| 861 | std::to_string(stride[1]) + "_" + "p" + std::to_string(padding[0]) + |
| 862 | std::to_string(padding[1]) + "_" + "d" + std::to_string(dilation[0]) + |
| 863 | std::to_string(dilation[1]); |
| 864 | |
| 865 | return conv2_strided_params(testname, signal_sz, filt_sz, stride, padding, |
| 866 | dilation); |
| 867 | } |
| 868 | vector<conv2_strided_params> genConsistencyTests() { |
| 869 | // TODO: test nfilters and nfeatures |
| 870 | return {conv2_consistency_data(dim4(10, 10), dim4(3, 3)), |
no test coverage detected