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

Function XLA_TEST_F

tensorflow/compiler/xla/tests/concat_test.cc:40–47  ·  view source on GitHub ↗

Concatenate expects at least one argument.

Source from the content-addressed store, hash-verified

38
39// Concatenate expects at least one argument.
40XLA_TEST_F(ConcatTest, Concat_Nothing) {
41 XlaBuilder builder(TestName());
42 ConcatInDim(&builder, {}, 0);
43 StatusOr<XlaComputation> computation_status = builder.Build();
44 ASSERT_FALSE(computation_status.ok());
45 EXPECT_THAT(computation_status.status().ToString(),
46 HasSubstr("Concatenate expects at least one argument"));
47}
48
49// Concatenate with one argument works.
50XLA_TEST_F(ConcatTest, Concat_R1_With_Nothing) {

Callers

nothing calls this directly

Calls 15

TestNameFunction · 0.85
ConcatInDimFunction · 0.85
ConstantR2FromArray2DFunction · 0.85
ConstantR3FromArray3DFunction · 0.85
MakeShapeFunction · 0.85
BroadcastFunction · 0.85
ConsumeValueOrDieMethod · 0.80
ErrorSpecClass · 0.70
HasSubstrFunction · 0.50
ParameterFunction · 0.50
MulFunction · 0.50
AddClass · 0.50

Tested by

no test coverage detected