36 : _padding(padding), _pad_value(pad_value)
74 for(
size_t dim = 0; dim < _padding.size(); ++dim)
76 output_desc.
shape.
set(dim, _padding[dim].first + input_shape[dim] + _padding[dim].second);
TensorShape shape
Tensor shape.
Class describing the value of a pixel for any image format.
bool forward_descriptors() override
Forwards descriptor information to outputs if possible.
std::vector< PaddingInfo > PaddingList
List of padding information.
void accept(INodeVisitor &v) override
Accepts a node visitor.
PixelValue pad_value() const
Padding value accessor.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
SimpleTensor< float > src
Copyright (c) 2017-2021 Arm Limited.
NodeType type() const override
Returns node's type.
TensorDescriptor & desc()
TensorInfo metadata accessor.
TensorShape input_shape
Validate test suite is to test ARM_COMPUTE_RETURN_ON_* macros we use to check the validity of given a...
const PaddingList & padding() const
Padding list accessor.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
virtual void visit(INode &n)=0
Visit INode.
Tensor * output(size_t idx) const
Returns the tensor of a given output of the node.
TensorID input_id(size_t idx) const
Returns the tensor ID of a given input of the node.
constexpr EdgeID EmptyEdgeID
TensorDescriptor configure_output(size_t idx) const override
Calculates output configuration.
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.
PadLayerNode(const PaddingList &padding, PixelValue pad_value=PixelValue())
Constructor.
Tensor * input(size_t idx) const
Returns the tensor of a given input of the node.
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.