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

Function TEST

tensorflow/lite/kernels/concatenation_test.cc:96–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94};
95
96TEST(ConcatenationOpTest, ThreeDimensionalOneInput) {
97 ConcatenationOpModel m0({TensorType_FLOAT32, {2, 1, 2}}, /*axis=*/1,
98 /*num_inputs=*/1);
99 m0.SetInput(0, {1.0f, 3.0f, 4.0f, 7.0f});
100 m0.Invoke();
101 EXPECT_THAT(m0.GetOutput(), ElementsAreArray({1, 3, 4, 7}));
102}
103
104TEST(ConcatenationOpTest, FiveDimensionalOneInput) {
105 ConcatenationOpModel m0({TensorType_FLOAT32, {2, 1, 2, 1, 3}}, /*axis=*/2,

Callers

nothing calls this directly

Calls 5

ArrayFloatNearFunction · 0.70
maxFunction · 0.50
SetInputMethod · 0.45
InvokeMethod · 0.45
GetOutputMethod · 0.45

Tested by

no test coverage detected