1 // 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> 10 #include "Decoders.hpp" 11 #include "Encoders.hpp" 12 13 namespace armnn { 14 15 class RefQuantizeWorkload : public BaseWorkload<QuantizeQueueDescriptor> 16 { 17 public: 18 RefQuantizeWorkload(const QuantizeQueueDescriptor& descriptor, const WorkloadInfo &info); 19 void PostAllocationConfigure() override; 20 void Execute() const override; 21 22 private: 23 24 std::unique_ptr<Decoder<float>> m_InputDecoder; 25 std::unique_ptr<Encoder<float>> m_OutputEncoder; 26 27 size_t m_NumElements; 28 }; 29 30 } //namespace armnn