Test for F32 1D array, with a zero-element input.
| 214 | |
| 215 | // Test for F32 1D array, with a zero-element input. |
| 216 | XLA_TEST_F(SelectAndScatterTest, R1S0F32) { |
| 217 | const auto operand = ConstantR1<float>(&builder_, {}); |
| 218 | const auto source = ConstantR1<float>(&builder_, {}); |
| 219 | SelectAndScatter(operand, ge_f32_, /*window_dimensions=*/{3}, |
| 220 | /*window_strides=*/{3}, Padding::kValid, source, |
| 221 | ConstantR0<float>(&builder_, 0.0f), add_f32_); |
| 222 | ComputeAndCompareR1<float>(&builder_, {}, {}, ErrorSpec(1e-7)); |
| 223 | } |
| 224 | |
| 225 | // Test for F32 1D array, when windows do not overlap. |
| 226 | XLA_TEST_F(SelectAndScatterTest, R1F32) { |
nothing calls this directly
no test coverage detected