MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / PoolingLayerDatasetSpecial

Class PoolingLayerDatasetSpecial

tests/datasets/PoolingLayerDataset.h:103–121  ·  view source on GitHub ↗

Special pooling dataset

Source from the content-addressed store, hash-verified

101
102// Special pooling dataset
103class PoolingLayerDatasetSpecial final : public PoolingLayerDataset
104{
105public:
106 PoolingLayerDatasetSpecial()
107 {
108 // Special cases
109 add_config(TensorShape(2U, 3U, 4U, 1U),
110 PoolingLayerInfo(PoolingType::AVG, Size2D(2, 2), DataLayout::NCHW, PadStrideInfo(3, 3, 0, 0), true));
111 add_config(TensorShape(60U, 52U, 3U, 2U), PoolingLayerInfo(PoolingType::AVG, Size2D(100, 100), DataLayout::NCHW,
112 PadStrideInfo(5, 5, 50, 50), true));
113 // Asymmetric padding
114 add_config(TensorShape(112U, 112U, 32U),
115 PoolingLayerInfo(PoolingType::MAX, 3, DataLayout::NCHW,
116 PadStrideInfo(2, 2, 0, 1, 0, 1, DimensionRoundingType::FLOOR)));
117 add_config(TensorShape(14U, 14U, 832U),
118 PoolingLayerInfo(PoolingType::MAX, 2, DataLayout::NCHW,
119 PadStrideInfo(1, 1, 0, 0, DimensionRoundingType::CEIL)));
120 }
121};
122} // namespace datasets
123} // namespace test
124} // namespace arm_compute

Callers 2

PoolingLayer.cppFile · 0.85
PoolingLayer.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected