22 m_Weight = std::make_unique<ScopedTensorHandle>(*(descriptor.
m_Weight));
23 const TensorInfo& rFilterInfo = m_Weight->GetTensorInfo();
24 m_FilterShape = rFilterInfo.
GetShape();
25 m_FilterDecoder = MakeDecoder<float>(rFilterInfo, m_Weight->Map(
true));
29 m_Bias = std::make_unique<ScopedTensorHandle>(*(descriptor.
m_Bias));
30 const TensorInfo& biasInfo = m_Bias->GetTensorInfo();
31 m_BiasDecoder = MakeDecoder<float>(biasInfo, m_Bias->Map(
true));
46 std::vector<ITensorHandle*> outputs)
const 49 std::unique_ptr<Decoder<float>> pBiasDecoder{};
51 std::unique_ptr<Decoder<float>> inputDecoder = MakeDecoder<float>(
GetTensorInfo(inputs[0]), inputs[0]->Map());
52 std::unique_ptr<Encoder<float>> OutputEncoder = MakeEncoder<float>(
GetTensorInfo(outputs[0]), outputs[0]->Map());
57 Convolve(inputShape, *inputDecoder, outputShape, *OutputEncoder,
bool m_BiasEnabled
Enable/disable bias.
const TensorShape & GetShape() const
CPU Execution: Reference C++ kernels.
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
uint32_t m_PadLeft
Padding left value in the width dimension.
Copyright (c) 2021 ARM Limited and Contributors.
LayerDescriptor m_Parameters
uint32_t m_DilationY
Dilation factor value for height dimension.
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
std::vector< ITensorHandle * > m_Inputs
void ExecuteAsync(WorkingMemDescriptor &workingMemDescriptor) override
uint32_t m_StrideX
Stride value when proceeding through input for the width dimension.
void Convolve(const TensorShape &rInputShape, Decoder< float > &rInputDecoder, const TensorShape &rOutputShape, Encoder< float > &rOutputEncoder, const TensorShape &rFilterShape, Decoder< float > &rFilterDecoder, bool biasEnabled, Decoder< float > *pBiasDecoder, DataLayout dataLayout, unsigned int paddingTop, unsigned int paddingLeft, unsigned int xStride, unsigned int yStride, unsigned int xDilation, unsigned int yDilation, bool depthwise)
uint32_t m_DilationX
Dilation factor value for width dimension.
uint32_t m_PadTop
Padding top value in the height dimension.
DepthwiseConvolution2dQueueDescriptor m_Data
void Execute() const override
const ConstTensorHandle * m_Bias
RefDepthwiseConvolution2dWorkload(const DepthwiseConvolution2dQueueDescriptor &descriptor, const WorkloadInfo &info)
const ConstTensorHandle * m_Weight
uint32_t m_StrideY
Stride value when proceeding through input for the height dimension.
std::vector< ITensorHandle * > m_Outputs
std::vector< ITensorHandle * > m_Outputs
Contains information about TensorInfos of a layer.
std::vector< ITensorHandle * > m_Inputs
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
Depthwise Convolution 2D layer workload data.