ArmNN
 24.08
StrategyBase< DefaultStrategy > Class Template Reference

Strategy base class with empty implementations. More...

#include <StrategyBase.hpp>

Inheritance diagram for StrategyBase< DefaultStrategy >:
[legend]
Collaboration diagram for StrategyBase< DefaultStrategy >:
[legend]

Public Member Functions

virtual void ExecuteStrategy (const armnn::IConnectableLayer *layer, const armnn::BaseDescriptor &descriptor, const std::vector< armnn::ConstTensor > &constants, const char *name, const armnn::LayerBindingId id=0) override
 
- Public Member Functions inherited from IStrategy
virtual void FinishStrategy ()
 

Protected Member Functions

virtual ~StrategyBase ()
 
- Protected Member Functions inherited from IStrategy
 IStrategy ()
 
virtual ~IStrategy ()
 

Protected Attributes

DefaultStrategy m_DefaultStrategy
 

Detailed Description

template<typename DefaultStrategy>
class armnn::StrategyBase< DefaultStrategy >

Strategy base class with empty implementations.

Definition at line 27 of file StrategyBase.hpp.

Constructor & Destructor Documentation

◆ ~StrategyBase()

virtual ~StrategyBase ( )
inlineprotectedvirtual

Definition at line 30 of file StrategyBase.hpp.

30 {};

Member Function Documentation

◆ ExecuteStrategy()

virtual void ExecuteStrategy ( const armnn::IConnectableLayer layer,
const armnn::BaseDescriptor descriptor,
const std::vector< armnn::ConstTensor > &  constants,
const char *  name,
const armnn::LayerBindingId  id = 0 
)
inlineoverridevirtual

Implements IStrategy.

Definition at line 33 of file StrategyBase.hpp.

38  {
39  armnn::IgnoreUnused(descriptor, constants, id, name);
40  switch (layer->GetType())
41  {
42  default:
43  {
45  }
46  }
47  }

References armnn::GetLayerTypeAsCString(), IConnectableLayer::GetType(), armnn::IgnoreUnused(), and StrategyBase< DefaultStrategy >::m_DefaultStrategy.

Member Data Documentation

◆ m_DefaultStrategy

DefaultStrategy m_DefaultStrategy
protected

Definition at line 50 of file StrategyBase.hpp.

Referenced by StrategyBase< DefaultStrategy >::ExecuteStrategy().


The documentation for this class was generated from the following file:
armnn::StrategyBase::m_DefaultStrategy
DefaultStrategy m_DefaultStrategy
Definition: StrategyBase.hpp:50
armnn::GetLayerTypeAsCString
const char * GetLayerTypeAsCString(LayerType type)
Definition: InternalTypes.cpp:13
armnn::IConnectableLayer::GetType
virtual LayerType GetType() const =0
Returns the armnn::LayerType of this layer.
armnn::IgnoreUnused
void IgnoreUnused(Ts &&...)
Definition: IgnoreUnused.hpp:14