24.08
|
Go to the documentation of this file.
15 using namespace armcomputetensorutils;
21 const arm_compute::TensorInfo aclInput = BuildArmComputeTensorInfo(input, descriptor.
m_DataLayout);
22 const arm_compute::TensorInfo aclOutput = BuildArmComputeTensorInfo(output, descriptor.
m_DataLayout);
26 return arm_compute::CLL2NormalizeLayer::validate(&aclInput, &aclOutput, axis, descriptor.
m_Eps);
31 const arm_compute::CLCompileContext& clCompileContext)
46 input.info()->set_data_layout(aclDataLayout);
47 output.info()->set_data_layout(aclDataLayout);
53 m_Layer.configure(clCompileContext, &input, &output, axis,
m_Data.m_Parameters.m_Eps);
96 void ClL2NormalizationFloatWorkload::Reconfigure()
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
A L2NormalizationDescriptor for the L2NormalizationLayer.
void ReplaceOutputTensorHandle(ITensorHandle *tensorHandle, unsigned int slot) override
ClL2NormalizationFloatWorkload(const L2NormalizationQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
arm_compute::Status ClL2NormalizationWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const L2NormalizationDescriptor &descriptor)
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.
Contains information about TensorInfos of a layer.
std::vector< ITensorHandle * > m_Outputs
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
void ReplaceInputTensorHandle(ITensorHandle *tensorHandle, unsigned int slot) override
void Execute() const override
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
Copyright (c) 2021 ARM Limited and Contributors.
float m_Eps
Used to avoid dividing by zero.
std::vector< ITensorHandle * > m_Inputs