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

Function TEST_F

tensorflow/core/kernels/control_flow_ops_test.cc:39–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37};
38
39TEST_F(SwitchOpTest, Int32Success_6_s0) {
40 Initialize(DT_INT32);
41 AddInputFromArray<int32>(TensorShape({6}), {1, 2, 3, 4, 5, 6});
42 AddInputFromArray<bool>(TensorShape({}), {false});
43 TF_ASSERT_OK(RunOpKernel());
44 Tensor expected(allocator(), DT_INT32, TensorShape({6}));
45 test::FillValues<int32>(&expected, {1, 2, 3, 4, 5, 6});
46 test::ExpectTensorEqual<int32>(expected, *GetOutput(0));
47 EXPECT_EQ(nullptr, GetOutput(1));
48}
49
50TEST_F(SwitchOpTest, Int32Success_6_s1) {
51 Initialize(DT_INT32);

Callers

nothing calls this directly

Calls 8

GetOutputFunction · 0.85
NodeDefBuilderClass · 0.85
KilledBySignalClass · 0.85
InitializeFunction · 0.50
TensorShapeClass · 0.50
FinalizeMethod · 0.45
AttrMethod · 0.45
IgnoreErrorMethod · 0.45

Tested by

no test coverage detected