24.08
|
Go to the documentation of this file.
14 using namespace armcomputetensorutils;
21 const arm_compute::TensorInfo aclInput0 = BuildArmComputeTensorInfo(input0);
22 const arm_compute::TensorInfo aclInput1 = BuildArmComputeTensorInfo(input1);
23 const arm_compute::TensorInfo aclOutput = BuildArmComputeTensorInfo(output);
27 const arm_compute::Status aclStatus = arm_compute::NEElementwiseComparison::validate(&aclInput0,
45 arm_compute::ITensor& input0 = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Inputs[0])->GetTensor();
46 arm_compute::ITensor& input1 = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Inputs[1])->GetTensor();
47 arm_compute::ITensor& output = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Outputs[0])->GetTensor();
51 m_ComparisonLayer.configure(&input0, &input1, &output, comparisonOperation);
57 m_ComparisonLayer.run();
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
virtual void Execute() const override
LayerDescriptor m_Parameters
Contains information about TensorInfos of a layer.
arm_compute::ComparisonOperation ConvertComparisonOperationToAcl(const ComparisonDescriptor &descriptor)
std::vector< ITensorHandle * > m_Outputs
A ComparisonDescriptor for the ComparisonLayer.
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
ComparisonQueueDescriptor m_Data
Copyright (c) 2021 ARM Limited and Contributors.
arm_compute::Status NeonComparisonWorkloadValidate(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const ComparisonDescriptor &descriptor)
#define ARMNN_SCOPED_PROFILING_EVENT_NEON_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
NeonComparisonWorkload(const ComparisonQueueDescriptor &descriptor, const WorkloadInfo &info)
std::vector< ITensorHandle * > m_Inputs