7 #include <builders/ie_layer_decorator.hpp>
8 #include <ie_network.hpp>
19 IE_SUPPRESS_DEPRECATED_START
20 class INFERENCE_ENGINE_NN_BUILDER_API_CLASS(PoolingLayer):
public LayerDecorator {
25 enum PoolingType { MAX = 1, AVG = 2 };
30 enum RoundingType { CEIL = 1, FLOOR = 2 };
36 explicit PoolingLayer(
const std::string& name =
"");
41 explicit PoolingLayer(
const Layer::Ptr& layer);
46 explicit PoolingLayer(
const Layer::CPtr& layer);
51 operator Layer()
const override;
57 PoolingLayer& setName(
const std::string& name);
63 const Port& getInputPort()
const;
69 PoolingLayer& setInputPort(
const Port& port);
74 const Port& getOutputPort()
const;
80 PoolingLayer& setOutputPort(
const Port& port);
85 const std::vector<size_t> getKernel()
const;
91 PoolingLayer& setKernel(
const std::vector<size_t>& kernel);
96 const std::vector<size_t> getStrides()
const;
102 PoolingLayer& setStrides(
const std::vector<size_t>& strides);
107 const std::vector<size_t> getPaddingsBegin()
const;
113 PoolingLayer& setPaddingsBegin(
const std::vector<size_t>& paddings);
118 const std::vector<size_t> getPaddingsEnd()
const;
124 PoolingLayer& setPaddingsEnd(
const std::vector<size_t>& paddings);
129 PoolingType getPoolingType()
const;
135 PoolingLayer& setPoolingType(PoolingType type);
140 RoundingType getRoundingType()
const;
146 PoolingLayer& setRoundingType(RoundingType type);
151 bool getExcludePad()
const;
157 PoolingLayer& setExcludePad(
bool exclude);
160 PoolingType type = MAX;
161 RoundingType roundingType = CEIL;
163 IE_SUPPRESS_DEPRECATED_END
Inference Engine API.
Definition: ie_argmax_layer.hpp:11