ArmNN
 24.02
ConvertConstants< Converter, Predicate > Class Template Reference

#include <ConvertConstants.hpp>

Inheritance diagram for ConvertConstants< Converter, Predicate >:
[legend]
Collaboration diagram for ConvertConstants< Converter, Predicate >:
[legend]

Public Member Functions

 ConvertConstants ()=default
 
 ConvertConstants (const ConvertConstants &)=default
 
virtual ~ConvertConstants ()=default
 
void Run (Graph &graph, Layer &layer) const override
 
- Public Member Functions inherited from Optimization
 Optimization ()=default
 
virtual ~Optimization ()=default
 

Detailed Description

template<typename Converter, typename Predicate>
class armnn::optimizations::ConvertConstants< Converter, Predicate >

Definition at line 64 of file ConvertConstants.hpp.

Constructor & Destructor Documentation

◆ ConvertConstants() [1/2]

ConvertConstants ( )
default

◆ ConvertConstants() [2/2]

ConvertConstants ( const ConvertConstants< Converter, Predicate > &  )
default

◆ ~ConvertConstants()

virtual ~ConvertConstants ( )
virtualdefault

Member Function Documentation

◆ Run()

void Run ( Graph graph,
Layer layer 
) const
inlineoverridevirtual

Implements Optimization.

Definition at line 71 of file ConvertConstants.hpp.

72  {
73  IgnoreUnused(graph);
74  if (Predicate::Test(layer))
75  {
76  layer.OperateOnConstantTensors(Converter::Func);
77  }
78  }

References armnn::IgnoreUnused(), and Layer::OperateOnConstantTensors().


The documentation for this class was generated from the following file:
armnn::IgnoreUnused
void IgnoreUnused(Ts &&...)
Definition: IgnoreUnused.hpp:14