24.08
|
Go to the documentation of this file.
11 #include <arm_compute/core/Types.h>
17 using namespace armcomputetensorutils;
21 const arm_compute::CLCompileContext& clCompileContext)
35 std::vector<std::pair<unsigned int, unsigned int>> reversed_PadList(descriptor.
m_Parameters.
m_PadList.size());
39 std::begin(reversed_PadList));
41 arm_compute::PaddingList padList =
static_cast<arm_compute::PaddingList
>(reversed_PadList);
47 m_Layer.configure(clCompileContext,
66 const arm_compute::TensorInfo aclInputInfo = BuildArmComputeTensorInfo(input);
67 const arm_compute::TensorInfo aclOutputInfo = BuildArmComputeTensorInfo(output);
69 std::vector<std::pair<unsigned int, unsigned int>> reversed_PadList(descriptor.
m_PadList.size());
71 std::reverse_copy(std::begin(descriptor.
m_PadList),
73 std::begin(reversed_PadList));
75 arm_compute::PaddingList padList =
static_cast<arm_compute::PaddingList
>(reversed_PadList);
78 arm_compute::PixelValue pixelValue = GetPixelValue(&aclInputInfo, descriptor.
m_PadValue);
80 arm_compute::CLPadLayer::validate(&aclInputInfo,
ClPadWorkload(const PadQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
LayerDescriptor m_Parameters
#define ARMNN_SCOPED_PROFILING_EVENT_CL_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
A PadDescriptor for the PadLayer.
Contains information about TensorInfos of a layer.
float m_PadValue
Optional value to use for padding, defaults to 0.
arm_compute::Status ClPadValidate(const TensorInfo &input, const TensorInfo &output, const PadDescriptor &descriptor)
std::vector< ITensorHandle * > m_Outputs
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
void Execute() const override
PadQueueDescriptor m_Data
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
std::vector< std::pair< unsigned int, unsigned int > > m_PadList
Specifies the padding for input dimension.
arm_compute::PaddingMode ConvertPaddingModeToAcl(const PaddingMode &paddingMode)
Copyright (c) 2021 ARM Limited and Contributors.
PaddingMode m_PaddingMode
Specifies the Padding mode (Constant, Reflect or Symmetric)
std::vector< ITensorHandle * > m_Inputs