36 : _block_shape(block_shape)
58 return output_descriptor;
TensorShape shape
Tensor shape.
TensorShape compute_depth_to_space_shape(const TensorShape &input_shape, DataLayout data_layout, int block)
Calculate the depth to space output shape of a tensor.
static TensorDescriptor compute_output_descriptor(const TensorDescriptor &input_descriptor, int block_shape)
Computes depth to space output descriptor.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
const DataLayout data_layout
SimpleTensor< float > src
Copyright (c) 2017-2021 Arm Limited.
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...
bool forward_descriptors() override
Forwards descriptor information to outputs if possible.
#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.
void accept(INodeVisitor &v) override
Accepts a node visitor.
constexpr EdgeID EmptyEdgeID
TensorDescriptor configure_output(size_t idx) const override
Calculates output configuration.
DepthToSpaceLayerNode(int block_shape)
Default Constructor.
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.
int block_shape() const
Block shape policy accessor.
DataLayout layout
Data layout.
DataLayout
[DataLayout enum definition]
NodeType type() const override
Returns node's type.