18 , m_InputShape(info.m_InputTensorInfos[0].GetShape())
19 , m_FilterShape(info.m_InputTensorInfos[1].GetShape())
20 , m_OutputShape(info.m_OutputTensorInfos[0].GetShape())
47 std::unique_ptr<Decoder<float>> inputDecoder = MakeDecoder<float>(
GetTensorInfo(inputs[0]), inputs[0]->Map());
48 std::unique_ptr<Encoder<float>> outputEncoder = MakeEncoder<float>(
GetTensorInfo(outputs[0]), outputs[0]->Map());
50 std::unique_ptr<Decoder<float>> weightsDecoder = MakeDecoder<float>(
GetTensorInfo(inputs[1]), inputs[1]->Map());
51 std::unique_ptr<Decoder<float>> biasDecoder;
55 biasDecoder = MakeDecoder<float>(
GetTensorInfo(inputs[2]), inputs[2]->Map());
58 Convolve(m_InputShape, *inputDecoder, m_OutputShape, *outputEncoder, m_FilterShape,
bool m_BiasEnabled
Enable/disable bias.
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
CPU Execution: Reference C++ kernels.
arm::pipe::ProfilingGuid GetGuid() const final
Copyright (c) 2021 ARM Limited and Contributors.
uint32_t m_DilationY
Dilation along y axis.
LayerDescriptor m_Parameters
std::vector< ITensorHandle * > m_Inputs
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.
std::vector< TensorInfo > m_InputTensorInfos
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)
Convolution2dQueueDescriptor m_Data
std::vector< TensorInfo > m_OutputTensorInfos
uint32_t m_StrideY
Stride value when proceeding through input for the height dimension.
#define ARMNN_SCOPED_PROFILING_EVENT_GUID(backendId, name, guid)
uint32_t m_DilationX
Dilation along x axis.
std::vector< ITensorHandle * > m_Outputs
std::vector< ITensorHandle * > m_Outputs
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
void Execute() const override
Contains information about TensorInfos of a layer.
std::vector< ITensorHandle * > m_Inputs
void ExecuteAsync(WorkingMemDescriptor &workingMemDescriptor) override
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
uint32_t m_PadLeft
Padding left value in the width dimension.