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

Function TEST

tensorflow/lite/kernels/batch_to_space_nd_test.cc:103–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101};
102
103TEST(BatchToSpaceNDOpTest, SimpleConstTest) {
104 BatchToSpaceNDOpConstModel m({4, 2, 2, 1}, {2, 2}, {0, 0, 0, 0});
105 m.SetInput<float>({1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16});
106 m.Invoke();
107 EXPECT_THAT(m.GetOutputShape(), ElementsAreArray({1, 4, 4, 1}));
108 EXPECT_THAT(m.GetOutput<float>(),
109 ElementsAreArray(
110 {1, 5, 2, 6, 9, 13, 10, 14, 3, 7, 4, 8, 11, 15, 12, 16}));
111}
112
113TEST(BatchToSpaceNDOpTest, SimpleConstTestInt8) {
114 BatchToSpaceNDOpConstModel m({4, 2, 2, 1}, {2, 2}, {0, 0, 0, 0},

Callers

nothing calls this directly

Calls 7

EXPECT_DEATHFunction · 0.85
SetCropsMethod · 0.80
InvokeUncheckedMethod · 0.80
InvokeMethod · 0.45
GetOutputShapeMethod · 0.45
SetBlockShapeMethod · 0.45

Tested by

no test coverage detected