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

Function TEST_F

tensorflow/compiler/xla/tests/select_test.cc:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34};
35
36TEST_F(SelectTest, SelectScalarF32True) {
37 XlaBuilder builder(TestName());
38 auto pred = ConstantR0<bool>(&builder, true);
39 auto on_true = ConstantR0<float>(&builder, 123.0f);
40 auto on_false = ConstantR0<float>(&builder, 42.0f);
41 Select(pred, on_true, on_false);
42
43 ComputeAndCompareR0<float>(&builder, 123.0f, {}, error_spec_);
44}
45
46TEST_F(SelectTest, SelectScalarS32True) {
47 XlaBuilder builder(TestName());

Callers

nothing calls this directly

Calls 6

TestNameFunction · 0.85
SelectFunction · 0.50
EqClass · 0.50
GtClass · 0.50
getMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected