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

Function TEST

tensorflow/lite/kernels/pooling_test.cc:117–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117TEST(FloatPoolingOpTest, AveragePool) {
118 FloatPoolingOpModel m(BuiltinOperator_AVERAGE_POOL_2D,
119 /*input=*/{TensorType_FLOAT32, {1, 2, 4, 1}},
120 /*filter_width=*/2, /*filter_height=*/2,
121 /*output=*/{TensorType_FLOAT32, {}});
122 m.SetInput({
123 0, 6, 2, 4, //
124 3, 2, 10, 7, //
125 });
126 m.Invoke();
127 EXPECT_THAT(m.GetOutput(), ElementsAreArray({2.75, 5.75}));
128}
129
130TEST(FloatPoolingOpTest, AveragePoolActivationRelu) {
131 FloatPoolingOpModel m(BuiltinOperator_AVERAGE_POOL_2D,

Callers

nothing calls this directly

Calls 6

ReplicateDepthRampFunction · 0.85
ArrayFloatNearFunction · 0.70
SetInputMethod · 0.45
InvokeMethod · 0.45
GetOutputMethod · 0.45
GetDequantizedOutputMethod · 0.45

Tested by

no test coverage detected