24.08
|
Go to the documentation of this file.
11 namespace optimizations
42 const std::string name = std::string(
"merged-") + base.
GetName() + std::string(
"-with-") + child.
GetName();
47 parentOut = &newReshape.GetOutputSlot();
#define ARMNN_ASSERT(COND)
void Run(Graph &graph, InputSlot &connection) const
Run for every connection between a base ReshapeLayer and a child ReshapeLayer.
const TensorInfo & GetTensorInfo() const override
const OutputSlot & GetOutputSlot(unsigned int index=0) const override
Get the const output slot handle by slot index.
~OptimizeConsecutiveReshapesImpl()=default
OptimizeConsecutiveReshapesImpl()=default
const InputSlot & GetInputSlot(unsigned int index) const override
Get a const input slot handle by slot index.
const char * GetName() const override
Returns the name of the layer.
Layer & GetOwningLayer() const
This layer represents a reshape operation.
unsigned int GetNumConnections() const override
A ReshapeDescriptor for the ReshapeLayer.
const OutputHandler & GetOutputHandler(unsigned int i=0) const
void MoveAllConnections(OutputSlot &destination)
Moves all connections to another OutputSlot.
LayerType GetType() const override
Returns the armnn::LayerType of this layer.
const TensorShape & GetShape() const
Copyright (c) 2021 ARM Limited and Contributors.
const TensorInfo & GetTensorInfo() const
Gets the matching TensorInfo for the output.
LayerT * InsertNewLayer(InputSlot &insertBefore, Args &&... args)
Inserts a new layer between the output slot currently connected to insertBefore and insertBefore itse...