24.08
|
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)))
OptimizeForConnection< PermuteLayer, PermuteLayer, OptimizeInversePermutesImpl< PermuteLayer > > OptimizeInversePermutes
~OptimizeInversePermutesImpl()=default
const InputSlot & GetInputSlot(unsigned int index) const override
Get a const input slot handle by slot index.
This layer represents a transpose operation.
Layer & GetOwningLayer() const
void Run(Graph &graph, InputSlot &connection) const
Run for every connection between a base PermuteLayer and a child PermuteLayer.
void IgnoreUnused(Ts &&...)
Copyright (c) 2021 ARM Limited and Contributors.
This layer represents a permutation operation.
OptimizeInversePermutesImpl()=default