23.05
|
Go to the documentation of this file.
14 namespace optimizations
17 template <
typename PermuteType>
27 auto child = PolymorphicDowncast<PermuteType*>(&connection.
GetOwningLayer());
29 if (child->IsInverse(*PolymorphicDowncast<PermuteType*>(&base)))
This layer represents a transpose operation.
void IgnoreUnused(Ts &&...)
This layer represents a permutation operation.
Copyright (c) 2021 ARM Limited and Contributors.
Layer & GetOwningLayer() const
const InputSlot & GetInputSlot(unsigned int index) const override
Get a const input slot handle by slot index.
OptimizeForConnection< PermuteLayer, PermuteLayer, OptimizeInversePermutesImpl< PermuteLayer > > OptimizeInversePermutes
OptimizeInversePermutesImpl()=default
void Run(Graph &graph, InputSlot &connection) const
Run for every connection between a base PermuteLayer and a child PermuteLayer.
~OptimizeInversePermutesImpl()=default