9 #include <boost/core/ignore_unused.hpp> 13 namespace optimizations
23 boost::ignore_unused(graph);
25 auto child = boost::polymorphic_downcast<PermuteLayer*>(&connection.
GetOwningLayer());
27 if (child->IsInverse(*boost::polymorphic_downcast<PermuteLayer*>(&base)))
void Run(Graph &graph, InputSlot &connection) const
~OptimizeInversePermutesImpl()=default
OptimizeInversePermutesImpl()=default
void MoveAllConnections(OutputSlot &destination)
Moves all connections to another OutputSlot.
Layer & GetOwningLayer() const
const OutputSlot & GetOutputSlot(unsigned int index=0) const override
const InputSlot & GetInputSlot(unsigned int index) const override