12 #include <fmt/format.h>
16 namespace optimizations
27 AddPermuteLayer(graph, PolymorphicDowncast<DepthwiseConvolution2dLayer*>(&layer));
This layer represents a depthwise convolution 2d operation.
LayerT * InsertNewLayer(InputSlot &insertBefore, Args &&... args)
Inserts a new layer between the output slot currently connected to insertBefore and insertBefore itse...
const OutputSlot & GetOutputSlot(unsigned int index=0) const override
Get the const output slot handle by slot index.
void SetBackendId(const BackendId &id) override
Set the backend of the IConnectableLayer.
const InputSlot & GetInputSlot(unsigned int index) const override
Get a const input slot handle by slot index.
LayerType GetType() const override
Returns the armnn::LayerType of this layer.
const BackendId & GetBackendId() const
const Parameters & GetParameters() const override
If the layer has a descriptor return it.
void SetTensorInfo(const TensorInfo &tensorInfo) override
const TensorInfo & GetTensorInfo() const override
This layer represents a permutation operation.
void Run(Graph &graph, Layer &layer) const
PermuteDepthwiseConv2dWeightsImpl()=default
~PermuteDepthwiseConv2dWeightsImpl()=default
Copyright (c) 2021 ARM Limited and Contributors.
constexpr const char * GetDataLayoutName(DataLayout dataLayout)
armnn::TensorShape Permuted(const armnn::TensorShape &srcShape, const armnn::PermutationVector &mappings)
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
A PermuteDescriptor for the PermuteLayer.