ArmNN
 26.01
Loading...
Searching...
No Matches
ConvertConstDequantisationLayersToConstLayersImpl Class Reference

#include <ConvertConstDequantisationLayersToConstLayers.hpp>

Public Member Functions

void Run (Graph &graph, InputSlot &connection) const
 

Protected Member Functions

 ConvertConstDequantisationLayersToConstLayersImpl ()=default
 
 ~ConvertConstDequantisationLayersToConstLayersImpl ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ ConvertConstDequantisationLayersToConstLayersImpl()

◆ ~ConvertConstDequantisationLayersToConstLayersImpl()

Member Function Documentation

◆ Run()

void Run ( Graph & graph,
InputSlot & connection ) const
inline

Definition at line 21 of file ConvertConstDequantisationLayersToConstLayers.hpp.

22 {
23 Layer& base = connection.GetConnectedOutputSlot()->GetOwningLayer();
24 Layer& child = connection.GetOwningLayer();
25
26 ARMNN_ASSERT(base.GetType() == LayerType::Constant);
27 ARMNN_ASSERT(child.GetType() == LayerType::Dequantize);
28
29 ReplaceConstDequantisationLayer(graph,
30 PolymorphicDowncast<ConstantLayer*>(&base),
31 PolymorphicDowncast<DequantizeLayer*>(&child));
32
33 }
#define ARMNN_ASSERT(COND)
Definition Assert.hpp:14

References ARMNN_ASSERT, armnn::Constant, armnn::Dequantize, InputSlot::GetConnectedOutputSlot(), InputSlot::GetOwningLayer(), OutputSlot::GetOwningLayer(), and Layer::GetType().


The documentation for this class was generated from the following file: