23.05
|
Go to the documentation of this file.
50 std::unique_ptr<Decoder<float>> inputDecoder = MakeDecoder<float>(
GetTensorInfo(inputs[0]), inputs[0]->
Map());
51 std::unique_ptr<Encoder<float>> outputEncoder = MakeEncoder<float>(
GetTensorInfo(outputs[0]), outputs[0]->
Map());
57 std::unique_ptr<Decoder<float>> filterDecoder = MakeDecoder<float>(
GetTensorInfo(inputs[1]), inputs[1]->
Map());
58 std::unique_ptr<Decoder<float>> biasDecoder;
62 biasDecoder = MakeDecoder<float>(
GetTensorInfo(inputs[2]), inputs[2]->
Map());
65 Convolve3d(inputShape, *inputDecoder, outputShape, *outputEncoder, filterInfo.GetShape(),
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
Optional< TensorInfo > m_BiasTensorInfo
arm::pipe::ProfilingGuid GetGuid() const final
uint32_t m_PadLeft
Padding left value in the width dimension.
std::vector< ITensorHandle * > m_Inputs
uint32_t m_DilationY
Dilation along y axis.
void Execute() const override
uint32_t m_DilationX
Dilation along x axis.
Convolution3dQueueDescriptor m_Data
uint32_t m_DilationZ
Dilation along z axis.
Optional< TensorInfo > m_WeightsTensorInfo
Copyright (c) 2021 ARM Limited and Contributors.
uint32_t m_PadTop
Padding top value in the height dimension.
uint32_t m_PadFront
Padding front value in the depth dimension.
uint32_t m_StrideZ
Stride value when proceeding through input for the depth dimension.
std::vector< TensorInfo > m_OutputTensorInfos
#define ARMNN_SCOPED_PROFILING_EVENT_GUID(backendId, name, guid)
RefConvolution3dWorkload(const Convolution3dQueueDescriptor &descriptor, const WorkloadInfo &info)
uint32_t m_StrideX
Stride value when proceeding through input for the width dimension.
uint32_t m_StrideY
Stride value when proceeding through input for the height dimension.
const TensorShape & GetShape() const
DataLayout m_DataLayout
The data layout to be used (NDHWC, NCDHW).
Contains information about TensorInfos of a layer.
LayerDescriptor m_Parameters
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
std::vector< ITensorHandle * > m_Outputs
void ExecuteAsync(ExecutionData &executionData) override
std::vector< ITensorHandle * > m_Outputs
bool m_BiasEnabled
Enable/disable bias.
@ CpuRef
CPU Execution: Reference C++ kernels.
std::vector< TensorInfo > m_InputTensorInfos
std::vector< ITensorHandle * > m_Inputs
void Convolve3d(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 paddingFront, unsigned int xStride, unsigned int yStride, unsigned int zStride, unsigned int xDilation, unsigned int yDilation, unsigned int zDilation)