24.08
|
Go to the documentation of this file.
35 std::vector<TensorShape>
InferOutputShapes(
const std::vector<TensorShape>& inputShapes)
const override;
bool IsEqual(const PermutationVector &other) const
PermuteLayer(const PermuteDescriptor ¶m, const char *name)
Constructor to create a PermuteLayer.
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 * Clone(Graph &graph) const override
Creates a dynamically-allocated copy of this layer.
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Makes a workload for the Permute type.
PermuteDescriptor m_Param
The parameters for the layer (not including tensor-valued weights etc.).
void ValidateTensorShapesFromInputs() override
Check if the input tensor shape(s) will lead to a valid configuration of 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,...
A PermuteDescriptor for the PermuteLayer.
bool IsInverse(const Layer &other) const
Indicates if the other layer received is inverse of this one.
PermutationVector m_DimMappings
Indicates how to translate tensor elements from a given source into the target destination,...
LayerType GetType() const override
Returns the armnn::LayerType of this layer.
~PermuteLayer()=default
Default destructor.
Copyright (c) 2021 ARM Limited and Contributors.
This layer represents a permutation operation.
const PermutationVector & GetPermutation() const