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

Function XLA_TEST_F

tensorflow/compiler/xla/tests/params_test.cc:43–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41class ParamsTest : public ClientLibraryTestBase {};
42
43XLA_TEST_F(ParamsTest, ConstantR0F32Param) {
44 XlaBuilder builder(TestName());
45 Literal param0_literal = LiteralUtil::CreateR0<float>(3.14159f);
46 std::unique_ptr<GlobalData> param0_data =
47 client_->TransferToServer(param0_literal).ConsumeValueOrDie();
48
49 Parameter(&builder, 0, ShapeUtil::MakeShape(F32, {}), "param0");
50
51 ComputeAndCompareR0<float>(&builder, 3.14159f, {param0_data.get()},
52 ErrorSpec(0.0001f));
53}
54
55XLA_TEST_F(ParamsTest, ConstantR1S0F32Param) {
56 XlaBuilder builder(TestName());

Callers

nothing calls this directly

Calls 15

TestNameFunction · 0.85
MakeShapeFunction · 0.85
reverseFunction · 0.85
ConsumeValueOrDieMethod · 0.80
minor_to_majorMethod · 0.80
mutable_layoutMethod · 0.80
ErrorSpecClass · 0.70
ParameterFunction · 0.50
AddClass · 0.50
MulFunction · 0.50
NegFunction · 0.50

Tested by

no test coverage detected