#include <ConstTensorLayerVisitor.hpp>
Definition at line 73 of file ConstTensorLayerVisitor.hpp.
◆ TestDepthwiseConvolution2dLayerVisitor()
◆ ~TestDepthwiseConvolution2dLayerVisitor()
◆ CheckDescriptor()
Definition at line 26 of file ConstTensorLayerVisitor.cpp.
References Convolution2dDescriptor::m_BiasEnabled, DepthwiseConvolution2dDescriptor::m_BiasEnabled, Convolution2dDescriptor::m_DataLayout, DepthwiseConvolution2dDescriptor::m_DataLayout, Convolution2dDescriptor::m_PadBottom, DepthwiseConvolution2dDescriptor::m_PadBottom, Convolution2dDescriptor::m_PadLeft, DepthwiseConvolution2dDescriptor::m_PadLeft, Convolution2dDescriptor::m_PadRight, DepthwiseConvolution2dDescriptor::m_PadRight, Convolution2dDescriptor::m_PadTop, DepthwiseConvolution2dDescriptor::m_PadTop, Convolution2dDescriptor::m_StrideX, DepthwiseConvolution2dDescriptor::m_StrideX, Convolution2dDescriptor::m_StrideY, and DepthwiseConvolution2dDescriptor::m_StrideY.
29 CHECK(m_Descriptor.
m_PadLeft == convolution2dDescriptor.m_PadLeft);
30 CHECK(m_Descriptor.
m_PadRight == convolution2dDescriptor.m_PadRight);
31 CHECK(m_Descriptor.
m_PadTop == convolution2dDescriptor.m_PadTop);
32 CHECK(m_Descriptor.
m_PadBottom == convolution2dDescriptor.m_PadBottom);
33 CHECK(m_Descriptor.
m_StrideX == convolution2dDescriptor.m_StrideX);
34 CHECK(m_Descriptor.
m_StrideY == convolution2dDescriptor.m_StrideY);
35 CHECK(m_Descriptor.
m_BiasEnabled == convolution2dDescriptor.m_BiasEnabled);
36 CHECK(m_Descriptor.
m_DataLayout == convolution2dDescriptor.m_DataLayout);
bool m_BiasEnabled
Enable/disable bias.
uint32_t m_PadBottom
Padding bottom value in the height dimension.
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
uint32_t m_PadLeft
Padding left value in the width dimension.
uint32_t m_StrideX
Stride value when proceeding through input for the width dimension.
uint32_t m_PadTop
Padding top value in the height dimension.
uint32_t m_StrideY
Stride value when proceeding through input for the height dimension.
uint32_t m_PadRight
Padding right value in the width dimension.
◆ ExecuteStrategy()
Reimplemented from StrategyBase< NoThrowStrategy >.
Definition at line 88 of file ConstTensorLayerVisitor.hpp.
References NoThrowStrategy::Apply(), TestLayerVisitor::CheckConstTensors(), TestConvolution2dLayerVisitor::CheckDescriptor(), TestLayerVisitor::CheckLayerName(), TestLayerVisitor::CheckLayerPointer(), armnn::DepthwiseConvolution2d, armnn::GetLayerTypeAsCString(), IConnectableLayer::GetType(), armnn::IgnoreUnused(), and StrategyBase< NoThrowStrategy >::m_DefaultStrategy.
101 CheckDescriptor(static_cast<const armnn::DepthwiseConvolution2dDescriptor&>(descriptor));
103 if (m_Biases.has_value())
105 CHECK(constants.size() == 2);
void CheckLayerName(const char *name)
void CheckLayerPointer(const IConnectableLayer *layer)
void IgnoreUnused(Ts &&...)
void CheckConstTensors(const ConstTensor &expected, const ConstTensor &actual)
NoThrowStrategy m_DefaultStrategy
void Apply(const std::string &)
void CheckDescriptor(const DepthwiseConvolution2dDescriptor &convolution2dDescriptor)
virtual LayerType GetType() const =0
Returns the armnn::LayerType of this layer.
const char * GetLayerTypeAsCString(LayerType type)
The documentation for this class was generated from the following files: