19 #include "ngraph/op/op.hpp"
20 #include "ngraph/op/util/attr_types.hpp"
32 NGRAPH_RTTI_DECLARATION;
49 const Shape& pads_begin,
50 const Shape& pads_end,
53 const PadType& auto_pad = op::PadType::EXPLICIT);
59 virtual std::shared_ptr<Node>
60 clone_with_new_inputs(
const OutputVector& new_args)
const override;
64 void set_kernel(
const Shape& kernel) { m_kernel = kernel; }
67 void set_strides(
const Strides& strides) { m_strides = strides; }
70 void set_pads_begin(
const Shape& pads_begin) { m_pads_begin = pads_begin; }
73 void set_adding_above(
const Shape& pads_end) { m_pads_end = pads_end; }
76 void set_auto_pad(
const PadType& auto_pad) { m_auto_pad = auto_pad; }
81 m_rounding_type = rounding_mode;
87 const HostTensorVector& inputs)
const override;
100 Shape& new_pads_begin)
const;
101 bool evaluate_maxpool(
const HostTensorVector& outputs,
102 const HostTensorVector& inputs)
const;
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
Class representing a shape that may be partially or totally dynamic.
Definition: partial_shape.hpp:46
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 max pooling operation.
Definition: max_pool.hpp:30
bool evaluate(const HostTensorVector &outputs, const HostTensorVector &inputs) const override
Evaluates the op on input_values putting results in output_values.
const Shape & get_kernel() const
Definition: max_pool.hpp:63
const Shape & get_pads_end() const
Definition: max_pool.hpp:72
const Strides & get_strides() const
Definition: max_pool.hpp:66
void validate_and_infer_types() override
Verifies that attributes and inputs are consistent and computes output shapes and element types....
MaxPool(const Output< Node > &arg, const Strides &strides, const Shape &pads_begin, const Shape &pads_end, const Shape &kernel, op::RoundingType rounding_mode=op::RoundingType::FLOOR, const PadType &auto_pad=op::PadType::EXPLICIT)
Constructs a batched max pooling operation.
const Shape & get_pads_begin() const
Definition: max_pool.hpp:69
MaxPool()=default
Constructs a batched max pooling operation.
virtual std::shared_ptr< Node > get_default_value() const override
size_t get_version() const override
Definition: max_pool.hpp:56
const PadType & get_auto_pad() const
Definition: max_pool.hpp:75
op::RoundingType get_rounding_type() const
Definition: max_pool.hpp:78
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