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

Function XLA_TEST_F

tensorflow/compiler/xla/tests/local_client_execute_test.cc:56–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54};
55
56XLA_TEST_F(LocalClientExecuteTest, Constant) {
57 XlaBuilder builder(TestName());
58 ConstantR0<float>(&builder, 123.0f);
59
60 ScopedShapedBuffer result =
61 ExecuteLocallyOrDie(builder.Build().ValueOrDie(), {});
62 LiteralTestUtil::ExpectR0Near<float>(123.f, ShapedBufferToLiteral(result),
63 error_spec_);
64}
65
66XLA_TEST_F(LocalClientExecuteTest, AddScalars) {
67 XlaBuilder builder(TestName());

Callers

nothing calls this directly

Calls 15

TestNameFunction · 0.85
MakeShapeFunction · 0.85
LiteralSliceClass · 0.85
AssignDeviceFunction · 0.85
InfeedFunction · 0.85
DefaultFunction · 0.85
ThreadOptionsClass · 0.85
OutfeedFunction · 0.85
ConsumeValueOrDieMethod · 0.80
ClearShardingMethod · 0.80
set_num_partitionsMethod · 0.80
TransferToInfeedLocalMethod · 0.80

Tested by

no test coverage detected