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

Function TEST_F

tensorflow/core/kernels/dynamic_stitch_op_test.cc:66–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64};
65
66TEST_F(DynamicStitchOpTest, Simple_OneD) {
67 MakeOp(2, DT_FLOAT);
68
69 // Feed and run
70 AddInputFromArray<int32>(TensorShape({3}), {0, 4, 7});
71 AddInputFromArray<int32>(TensorShape({5}), {1, 6, 2, 3, 5});
72 AddInputFromArray<float>(TensorShape({3}), {0, 40, 70});
73 AddInputFromArray<float>(TensorShape({5}), {10, 60, 20, 30, 50});
74 TF_ASSERT_OK(RunOpKernel());
75
76 // Check the output.
77 Tensor expected(allocator(), DT_FLOAT, TensorShape({8}));
78 test::FillValues<float>(&expected, {0, 10, 20, 30, 40, 50, 60, 70});
79 test::ExpectTensorEqual<float>(expected, *GetOutput(0));
80}
81
82TEST_F(DynamicStitchFastOpTest, Simple_OneD) {
83 MakeOp(2, DT_FLOAT);

Callers

nothing calls this directly

Calls 5

GetOutputFunction · 0.85
TensorShapeClass · 0.50
StrContainsFunction · 0.50
SyncMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected