| 64 | }; |
| 65 | |
| 66 | TEST_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 | |
| 82 | TEST_F(DynamicStitchFastOpTest, Simple_OneD) { |
| 83 | MakeOp(2, DT_FLOAT); |
nothing calls this directly
no test coverage detected