36 : _perm(perm), _layout(layout)
71 output_desc.
layout = _layout;
TensorShape shape
Tensor shape.
bool forward_descriptors() override
Forwards descriptor information to outputs if possible.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
const PermutationVector & permutation_vector() const
Permutation vector accessor.
NodeType type() const override
Returns node's type.
SimpleTensor< float > src
Copyright (c) 2017-2021 Arm Limited.
void permute(Dimensions< T > &dimensions, const PermutationVector &perm)
Permutes given Dimensions according to a permutation vector.
#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.
PermuteLayerNode(PermutationVector perm, DataLayout layout=DataLayout::UNKNOWN)
Constructor.
constexpr EdgeID EmptyEdgeID
TensorDescriptor configure_output(size_t idx) const override
Calculates output configuration.
Strides of an item in bytes.
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]