24.02
|
Go to the documentation of this file.
45 std::vector<ITensorHandle*> outputs)
const
53 std::unique_ptr<Decoder<float>> inputDecoder = MakeDecoder<float>(
GetTensorInfo(inputs[0]), inputs[0]->
Map());
54 std::unique_ptr<Encoder<float>> outputEncoder = MakeEncoder<float>(
GetTensorInfo(outputs[0]), outputs[0]->
Map());
55 std::unique_ptr<Decoder<float>> filterDecoder = MakeDecoder<float>(
GetTensorInfo(inputs[1]), inputs[1]->
Map());
56 std::unique_ptr<Decoder<float>> biasDecoder{};
59 biasDecoder = MakeDecoder<float>(
GetTensorInfo(inputs[2]), inputs[2]->Map());
62 Convolve(inputShape, *inputDecoder, outputShape, *outputEncoder,
bool m_BiasEnabled
Enable/disable bias.
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
uint32_t m_PadLeft
Padding left value in the width dimension.
#define ARMNN_SCOPED_PROFILING_EVENT_REF_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
uint32_t m_StrideY
Stride value when proceeding through input for the height dimension.
std::vector< TensorInfo > m_OutputTensorInfos
LayerDescriptor m_Parameters
uint32_t m_DilationY
Dilation factor value for height dimension.
Contains information about TensorInfos of a layer.
void ExecuteAsync(ExecutionData &executionData) override
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
std::vector< ITensorHandle * > m_Outputs
Depthwise Convolution 2D layer workload data.
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
DepthwiseConvolution2dQueueDescriptor m_Data
void Execute() const override
const TensorShape & GetShape() const
std::vector< TensorInfo > m_InputTensorInfos
std::vector< ITensorHandle * > m_Inputs
Copyright (c) 2021 ARM Limited and Contributors.
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.
RefDepthwiseConvolution2dWorkload(const DepthwiseConvolution2dQueueDescriptor &descriptor, const WorkloadInfo &info)
std::vector< ITensorHandle * > m_Outputs
std::vector< ITensorHandle * > m_Inputs
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.