ArmNN
 24.08
RefComparisonWorkload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include "BaseIterator.hpp"
9 
10 #include "RefBaseWorkload.hpp"
12 
13 namespace armnn
14 {
15 
16 class RefComparisonWorkload : public RefBaseWorkload<ComparisonQueueDescriptor>
17 {
18 public:
20 
22  void PostAllocationConfigure() override;
23  void Execute() const override;
24  void ExecuteAsync(ExecutionData& executionData) override;
25 
26 private:
27  void PostAllocationConfigure(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs);
28  void Execute(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs) const;
29  using InType = float;
30  using OutType = bool;
31 
32  std::unique_ptr<Decoder<InType>> m_Input0;
33  std::unique_ptr<Decoder<InType>> m_Input1;
34  std::unique_ptr<Encoder<OutType>> m_Output;
35 };
36 
37 } // namespace armnn
WorkloadData.hpp
BaseIterator.hpp
armnn::ComparisonQueueDescriptor
Definition: WorkloadData.hpp:666
armnn::RefComparisonWorkload::PostAllocationConfigure
void PostAllocationConfigure() override
Definition: RefComparisonWorkload.cpp:27
armnn::RefComparisonWorkload::Execute
void Execute() const override
Definition: RefComparisonWorkload.cpp:45
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
armnn::BoostLogSeverityMapping::info
@ info
armnn::RefComparisonWorkload::RefComparisonWorkload
RefComparisonWorkload(const ComparisonQueueDescriptor &descriptor, const WorkloadInfo &info)
Definition: RefComparisonWorkload.cpp:22
armnn::RefComparisonWorkload
Definition: RefComparisonWorkload.hpp:16
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
RefBaseWorkload.hpp
armnn::RefBaseWorkload
Definition: RefBaseWorkload.hpp:13
armnn::RefComparisonWorkload::ExecuteAsync
void ExecuteAsync(ExecutionData &executionData) override
Definition: RefComparisonWorkload.cpp:50
armnn::experimental::ExecutionData
Definition: ExecutionData.hpp:14