ArmNN
 22.05
TestNameOnlyLayerVisitor.hpp File Reference

Go to the source code of this file.

Classes

class  TestAdditionLayerVisitor
 
class  TestDequantizeLayerVisitor
 
class  TestDivisionLayerVisitor
 
class  TestFloorLayerVisitor
 
class  TestMaximumLayerVisitor
 
class  TestMergeLayerVisitor
 
class  TestMinimumLayerVisitor
 
class  TestMultiplicationLayerVisitor
 
class  TestPreluLayerVisitor
 
class  TestQuantizeLayerVisitor
 
class  TestRankLayerVisitor
 
class  TestSubtractionLayerVisitor
 
class  TestSwitchLayerVisitor
 

Macros

#define DECLARE_TEST_NAME_ONLY_LAYER_VISITOR_CLASS(name)
 

Macro Definition Documentation

◆ DECLARE_TEST_NAME_ONLY_LAYER_VISITOR_CLASS

#define DECLARE_TEST_NAME_ONLY_LAYER_VISITOR_CLASS (   name)
Value:
class Test##name##LayerVisitor : public armnn::TestLayerVisitor \
{ \
public: \
explicit Test##name##LayerVisitor(const char* layerName = nullptr) : armnn::TestLayerVisitor(layerName) {}; \
\
const armnn::BaseDescriptor& descriptor, \
const std::vector<armnn::ConstTensor>& constants, \
const char* layerName, \
const armnn::LayerBindingId id = 0) override \
{ \
armnn::IgnoreUnused(descriptor, constants, id); \
switch (layer->GetType()) \
{ \
case armnn::LayerType::name: \
{ \
CheckLayerPointer(layer); \
CheckLayerName(layerName); \
break; \
} \
default: \
{ \
m_DefaultStrategy.Apply(GetLayerTypeAsCString(layer->GetType())); \
} \
} \
} \
\
};
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
Definition: INetwork.hpp:66
Copyright (c) 2021 ARM Limited and Contributors.
void IgnoreUnused(Ts &&...)
int LayerBindingId
Type of identifiers for bindable layers (inputs, outputs).
Definition: Types.hpp:290
Base class for all descriptors.
Definition: Descriptors.hpp:22
virtual LayerType GetType() const =0
Returns the armnn::LayerType of this layer.
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
const char * GetLayerTypeAsCString(LayerType type)

Definition at line 12 of file TestNameOnlyLayerVisitor.hpp.