19 #include "ngraph/op/op.hpp"
20 #include "ngraph/op/util/attr_types.hpp"
33 NGRAPH_RTTI_DECLARATION;
57 const Shape& pads_begin,
58 const Shape& pads_end,
62 const PadType& auto_pad = op::PadType::EXPLICIT);
68 virtual std::shared_ptr<Node>
69 clone_with_new_inputs(
const OutputVector& new_args)
const override;
73 void set_kernel(
const Shape& kernel);
76 void set_strides(
const Strides& strides);
79 void set_pads_begin(
const Shape& pads_begin);
82 void set_pads_end(
const Shape& pads_end);
83 bool get_exclude_pad()
const;
84 void set_exclude_pad(
bool exclude_pad);
87 void set_auto_pad(
const PadType& auto_pad);
98 bool m_exclude_pad{
true};
99 PadType m_auto_pad{PadType::EXPLICIT};
Visits the attributes of a node, primarily for serialization-like tasks.
Definition: attribute_visitor.hpp:71
A handle for one of a node's outputs.
Definition: node_output.hpp:42
Shape for a tensor.
Definition: shape.hpp:31
Strides for a tensor.
Definition: strides.hpp:30
Root of all actual ops.
Definition: op.hpp:29
Batched average pooling operation.
Definition: avg_pool.hpp:31
AvgPool(const Output< Node > &arg, const Strides &strides, const Shape &pads_begin, const Shape &pads_end, const Shape &kernel, bool exclude_pad, op::RoundingType rounding_type=op::RoundingType::FLOOR, const PadType &auto_pad=op::PadType::EXPLICIT)
Constructs a batched average pooling operation.
AvgPool()=default
Constructs a batched average pooling operation.
void validate_and_infer_types() override
Verifies that attributes and inputs are consistent and computes output shapes and element types....
const Shape & get_pads_begin() const
const PadType & get_auto_pad() const
virtual std::shared_ptr< Node > get_default_value() const override
const Shape & get_pads_end() const
const Strides & get_strides() const
size_t get_version() const override
Definition: avg_pool.hpp:64
const Shape & get_kernel() const
RoundingType
Rounding Type used for Pooling operators.
Definition: attr_types.hpp:103
PadType
Padding Type used for Convolution and Pooling
Definition: attr_types.hpp:73
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:28