35 std::vector<TensorShape>
InferOutputShapes(
const std::vector<TensorShape>& inputShapes)
const override;
LayerType GetType() const override
Returns the armnn::LayerType of this layer.
LayerWithParameters(unsigned int numInputSlots, unsigned int numOutputSlots, LayerType type, const PermuteDescriptor ¶m, const char *name)
PermuteDescriptor m_Param
bool IsEqual(const PermutationVector &other) const
bool IsInverse(const PermutationVector &other) const
bool IsEqual(const Layer &other) const
Indicates if the other layer received is equal to this one.
void ExecuteStrategy(IStrategy &strategy) const override
Apply a visitor to this layer.
PermuteLayer(const PermuteDescriptor ¶m, const char *name)
Constructor to create a PermuteLayer.
std::vector< TensorShape > InferOutputShapes(const std::vector< TensorShape > &inputShapes) const override
By default returns inputShapes if the number of inputs are equal to number of outputs,...
const PermutationVector & GetPermutation() const
bool IsInverse(const Layer &other) const
Indicates if the other layer received is inverse of this one.
void ValidateTensorShapesFromInputs() override
Check if the input tensor shape(s) will lead to a valid configuration of PermuteLayer.
~PermuteLayer()=default
Default destructor.
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Makes a workload for the Permute type.
PermuteLayer * Clone(Graph &graph) const override
Creates a dynamically-allocated copy of this layer.
Copyright (c) 2021 ARM Limited and Contributors.
DestType PolymorphicDowncast(SourceType *value)
Polymorphic downcast for build in pointers only.
A PermuteDescriptor for the PermuteLayer.