| 52 | }; |
| 53 | |
| 54 | XLA_TEST_F(ConvolutionVariantsTest, Minimal) { |
| 55 | XlaBuilder builder(TestName()); |
| 56 | |
| 57 | const Array4D<float> input_array(1, 1, 1, 1, {2}); |
| 58 | auto input = ConstantR4FromArray4D<float>(&builder, input_array); |
| 59 | |
| 60 | const Array4D<float> filter_array(1, 1, 1, 1, {3}); |
| 61 | auto filter = ConstantR4FromArray4D<float>(&builder, filter_array); |
| 62 | |
| 63 | Conv(input, filter, {1, 1}, Padding::kValid); |
| 64 | |
| 65 | const Array4D<float> expected(1, 1, 1, 1, {6}); |
| 66 | ComputeAndCompareR4<float>(&builder, expected, {}, error_spec_); |
| 67 | } |
| 68 | |
| 69 | XLA_TEST_F(ConvolutionVariantsTest, MinimalWithBatch) { |
| 70 | XlaBuilder builder(TestName()); |
nothing calls this directly
no test coverage detected