19 m_Weight = std::make_unique<ScopedCpuTensorHandle>(*(descriptor.
m_Weight));
20 const TensorInfo& rFilterInfo = m_Weight->GetTensorInfo();
22 m_FilterShape = rFilterInfo.
GetShape();
23 m_FilterDecoder = MakeDecoder<float>(rFilterInfo, m_Weight.get()->Map(
true));
27 m_Bias = std::make_unique<ScopedCpuTensorHandle>(*(descriptor.
m_Bias));
28 const TensorInfo& biasInfo = m_Bias->GetTensorInfo();
29 m_BiasDecoder = MakeDecoder<float>(biasInfo, m_Bias->Map(
true));
37 m_InputDecoder = MakeDecoder<float>(inputInfo);
40 m_OutputShape = outputInfo.GetShape();
41 m_OutputEncoder = MakeEncoder<float>(outputInfo);
50 Convolve(m_InputShape, *m_InputDecoder, m_OutputShape, *m_OutputEncoder, m_FilterShape,
bool m_BiasEnabled
Enable/disable bias.
const ConstCpuTensorHandle * m_Bias
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
const TensorShape & GetShape() const
CPU Execution: Reference C++ kernels.
void PostAllocationConfigure() override
const Convolution2dQueueDescriptor m_Data
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
Copyright (c) 2020 ARM Limited.
uint32_t m_DilationY
Dilation along y axis.
LayerDescriptor m_Parameters
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
uint32_t m_PadTop
Padding top value in the height dimension.
uint32_t m_StrideX
Stride value when proceeding through input for the width dimension.
RefConvolution2dWorkload(const Convolution2dQueueDescriptor &descriptor, const WorkloadInfo &info)
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)
const ConstCpuTensorHandle * m_Weight
uint32_t m_StrideY
Stride value when proceeding through input for the height dimension.
uint32_t m_DilationX
Dilation along x axis.
std::vector< ITensorHandle * > m_Outputs
virtual void Execute() const override
Contains information about inputs and outputs to a layer.
std::vector< ITensorHandle * > m_Inputs
uint32_t m_PadLeft
Padding left value in the width dimension.