7 #include "ngraph/op/op.hpp"
8 #include "ngraph/op/util/attr_types.hpp"
20 NGRAPH_RTTI_DECLARATION;
37 const Shape& pads_begin,
38 const Shape& pads_end,
41 const PadType& auto_pad = op::PadType::EXPLICIT);
47 virtual std::shared_ptr<Node>
48 clone_with_new_inputs(
const OutputVector& new_args)
const override;
52 void set_kernel(
const Shape& kernel) { m_kernel = kernel; }
55 void set_strides(
const Strides& strides) { m_strides = strides; }
58 void set_pads_begin(
const Shape& pads_begin) { m_pads_begin = pads_begin; }
61 void set_adding_above(
const Shape& pads_end) { m_pads_end = pads_end; }
64 void set_auto_pad(
const PadType& auto_pad) { m_auto_pad = auto_pad; }
69 m_rounding_type = rounding_mode;
75 const HostTensorVector& inputs)
const override;
89 Shape& new_pads_begin)
const;
90 bool evaluate_maxpool(
const HostTensorVector& outputs,
91 const HostTensorVector& inputs)
const;
Visits the attributes of a node, primarily for serialization-like tasks.
Definition: attribute_visitor.hpp:59
A handle for one of a node's outputs.
Definition: node_output.hpp:33
Class representing a shape that may be partially or totally dynamic.
Definition: partial_shape.hpp:34
Shape for a tensor.
Definition: shape.hpp:19
Strides for a tensor.
Definition: strides.hpp:18
Root of all actual ops.
Definition: op.hpp:17
Batched max pooling operation.
Definition: max_pool.hpp:18
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:51
const Shape & get_pads_end() const
Definition: max_pool.hpp:60
const Strides & get_strides() const
Definition: max_pool.hpp:54
void validate_and_infer_types() override
Verifies that attributes and inputs are consistent and computes output shapes and element types....
bool has_evaluate() const override
Allows to get information about availability of evaluate method for the current operation.
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:57
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:44
const PadType & get_auto_pad() const
Definition: max_pool.hpp:63
op::RoundingType get_rounding_type() const
Definition: max_pool.hpp:66
RoundingType
Rounding Type used for Pooling operators.
Definition: attr_types.hpp:91
PadType
Padding Type used for Convolution and Pooling
Definition: attr_types.hpp:61
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16