36 : _info(
std::move(pool_info))
50 unsigned int pooled_width = 0;
51 unsigned int pooled_height = 0;
65 return output_descriptor;
TensorShape shape
Tensor shape.
PoolingLayerNode(PoolingLayerInfo pool_info)
Constructor.
bool forward_descriptors() override
Forwards descriptor information to outputs if possible.
static TensorDescriptor compute_output_descriptor(const TensorDescriptor &input_descriptor, PoolingLayerInfo info)
Computes pooling output descriptor.
TensorDescriptor configure_output(size_t idx) const override
Calculates output configuration.
size_t get_dimension_size(const TensorDescriptor &descriptor, const DataLayoutDimension data_layout_dimension)
Get size of a tensor's given dimension depending on its layout.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
const size_t input_height
SimpleTensor< float > src
Copyright (c) 2017-2023 Arm Limited.
size_t height
Height of the image region or rectangle.
PoolingLayerInfo pooling_info() const
Pooling metadata accessor.
std::pair< unsigned int, unsigned int > scaled_dimensions(int width, int height, int kernel_width, int kernel_height, const PadStrideInfo &pad_stride_info, const Size2D &dilation=Size2D(1U, 1U))
Returns expected width and height of output scaled tensor depending on dimensions rounding mode...
TensorDescriptor & desc()
TensorInfo metadata accessor.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
virtual void visit(INode &n)=0
Visit INode.
NodeType type() const override
Returns node's type.
Tensor * output(size_t idx) const
Returns the tensor of a given output of the node.
Pooling Layer Information struct.
TensorID input_id(size_t idx) const
Returns the tensor ID of a given input of the node.
constexpr EdgeID EmptyEdgeID
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
PadStrideInfo pad_stride_info
size_t width
Width of the image region or rectangle.
TensorID output_id(size_t idx) const
Returns the tensor ID of a given output of the node.
constexpr TensorID NullTensorID
Constant NodeID specifying an equivalent of null node.
Tensor * input(size_t idx) const
Returns the tensor of a given input of the node.
DataLayout layout
Data layout.
DataLayout
[DataLayout enum definition]
void accept(INodeVisitor &v) override
Accepts a node visitor.
TensorShape & set(size_t dimension, size_t value, bool apply_dim_correction=true, bool increase_dim_unit=true)
Accessor to set the value of one of the dimensions.
size_t get_dimension_idx(DataLayout data_layout, const DataLayoutDimension data_layout_dimension)
Get index of a tensor's given dimension depending on its layout.