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

Function TEST

tensorflow/lite/kernels/pack_test.cc:55–63  ·  view source on GitHub ↗

float32 tests.

Source from the content-addressed store, hash-verified

53
54// float32 tests.
55TEST(PackOpTest, FloatThreeInputs) {
56 PackOpModel<float> model({TensorType_FLOAT32, {2}}, 0, 3);
57 model.SetInput(0, {1, 4});
58 model.SetInput(1, {2, 5});
59 model.SetInput(2, {3, 6});
60 model.Invoke();
61 EXPECT_THAT(model.GetOutputShape(), ElementsAre(3, 2));
62 EXPECT_THAT(model.GetOutput(), ElementsAreArray({1, 4, 2, 5, 3, 6}));
63}
64
65TEST(PackOpTest, FloatThreeInputsDifferentAxis) {
66 PackOpModel<float> model({TensorType_FLOAT32, {2}}, 1, 3);

Callers

nothing calls this directly

Calls 4

SetInputMethod · 0.45
InvokeMethod · 0.45
GetOutputShapeMethod · 0.45
GetOutputMethod · 0.45

Tested by

no test coverage detected