33 std::vector<ITensorHandle*> outputs)
39 m_Input0 = MakeDecoder<InType>(inputInfo0);
40 m_Input1 = MakeDecoder<InType>(inputInfo1);
42 m_Output = MakeEncoder<OutType>(outputInfo);
62 m_Input0->Reset(inputs[0]->
Map());
63 m_Input1->Reset(inputs[1]->
Map());
64 m_Output->Reset(outputs[0]->
Map());
73 switch (
m_Data.m_Parameters.m_Operation)
77 EqualFunction(inShape0, inShape1, outShape, *m_Input0, *m_Input1, *m_Output);
82 GreaterFunction(inShape0, inShape1, outShape, *m_Input0, *m_Input1, *m_Output);
87 GreaterOrEqualFunction(inShape0, inShape1, outShape, *m_Input0, *m_Input1, *m_Output);
92 LessFunction(inShape0, inShape1, outShape, *m_Input0, *m_Input1, *m_Output);
97 LessOrEqualFunction(inShape0, inShape1, outShape, *m_Input0, *m_Input1, *m_Output);
102 NotEqualFunction(inShape0, inShape1, outShape, *m_Input0, *m_Input1, *m_Output);
107 throw InvalidArgumentException(std::string(
"Unsupported comparison operation ") +
#define ARMNN_SCOPED_PROFILING_EVENT_REF_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
void PostAllocationConfigure() override
void Execute() const override
RefComparisonWorkload(const ComparisonQueueDescriptor &descriptor, const WorkloadInfo &info)
const TensorShape & GetShape() const
Copyright (c) 2021 ARM Limited and Contributors.
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
constexpr char const * GetComparisonOperationAsCString(ComparisonOperation operation)
std::vector< ITensorHandle * > m_Inputs
std::vector< ITensorHandle * > m_Outputs
Contains information about TensorInfos of a layer.