MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / XLA_TEST_F

Function XLA_TEST_F

tensorflow/compiler/xla/tests/select_and_scatter_test.cc:216–223  ·  view source on GitHub ↗

Test for F32 1D array, with a zero-element input.

Source from the content-addressed store, hash-verified

214
215// Test for F32 1D array, with a zero-element input.
216XLA_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.
226XLA_TEST_F(SelectAndScatterTest, R1F32) {

Callers

nothing calls this directly

Calls 4

SelectAndScatterFunction · 0.85
ErrorSpecClass · 0.70
ReshapeFunction · 0.50
maxFunction · 0.50

Tested by

no test coverage detected