13 namespace optimizations
16 template <
typename PermuteType>
26 auto child = boost::polymorphic_downcast<PermuteType*>(&connection.
GetOwningLayer());
28 if (child->IsInverse(*boost::polymorphic_downcast<PermuteType*>(&base)))
Layer & GetOwningLayer() const
OptimizeInversePermutesImpl()=default
Copyright (c) 2020 ARM Limited.
void IgnoreUnused(Ts &&...)
This layer represents a permutation operation.
~OptimizeInversePermutesImpl()=default
const InputSlot & GetInputSlot(unsigned int index) const override
Get a const input slot handle by slot index.
void Run(Graph &graph, InputSlot &connection) const
Run for every connection between a base PermuteLayer and a child PermuteLayer.
This layer represents a transpose operation.
const OutputSlot & GetOutputSlot(unsigned int index=0) const override
Get the const output slot handle by slot index.
void MoveAllConnections(OutputSlot &destination)
Moves all connections to another OutputSlot.