blob: 9ae107607bfb9b463f29eed21cefe91c33899269 [file] [log] [blame]
Derek Lamberti5f400d62019-03-25 15:41:58 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
8#include <backendsCommon/Workload.hpp>
9#include <backendsCommon/WorkloadData.hpp>
Keith Davis5e51cd82020-01-29 16:52:59 +000010#include "Decoders.hpp"
11#include "Encoders.hpp"
Derek Lamberti5f400d62019-03-25 15:41:58 +000012
13namespace armnn {
14
15class RefQuantizeWorkload : public BaseWorkload<QuantizeQueueDescriptor>
16{
17public:
18 RefQuantizeWorkload(const QuantizeQueueDescriptor& descriptor, const WorkloadInfo &info);
Keith Davis5e51cd82020-01-29 16:52:59 +000019 void PostAllocationConfigure() override;
Derek Lamberti5f400d62019-03-25 15:41:58 +000020 void Execute() const override;
21
22private:
Keith Davis5e51cd82020-01-29 16:52:59 +000023
24 std::unique_ptr<Decoder<float>> m_InputDecoder;
25 std::unique_ptr<Encoder<float>> m_OutputEncoder;
26
Derek Lamberti5f400d62019-03-25 15:41:58 +000027 size_t m_NumElements;
Derek Lamberti5f400d62019-03-25 15:41:58 +000028};
29
30} //namespace armnn