blob: 4d6baf5fa49fde4f0a1218d7bed82b7c85d3d2c7 [file] [log] [blame]
James Conroyaba90cd2020-11-06 16:28:18 +00001//
2// Copyright © 2020 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 <backendsCommon/Workload.hpp>
11#include <backendsCommon/WorkloadData.hpp>
12
13namespace armnn
14{
15
16class RefLogicalBinaryWorkload : public BaseWorkload<LogicalBinaryQueueDescriptor>
17{
18public:
19 using BaseWorkload<LogicalBinaryQueueDescriptor>::m_Data;
20
21 RefLogicalBinaryWorkload(const LogicalBinaryQueueDescriptor& descriptor, const WorkloadInfo& info);
22 void PostAllocationConfigure() override;
23 virtual void Execute() const override;
24
25private:
26 using InType = bool;
27 using OutType = bool;
28
29 std::unique_ptr<Decoder<InType>> m_Input0;
30 std::unique_ptr<Decoder<InType>> m_Input1;
31 std::unique_ptr<Encoder<OutType>> m_Output;
32};
33
34} // namespace armnn