blob: 9ae107607bfb9b463f29eed21cefe91c33899269 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <backendsCommon/Workload.hpp>
#include <backendsCommon/WorkloadData.hpp>
#include "Decoders.hpp"
#include "Encoders.hpp"
namespace armnn {
class RefQuantizeWorkload : public BaseWorkload<QuantizeQueueDescriptor>
{
public:
RefQuantizeWorkload(const QuantizeQueueDescriptor& descriptor, const WorkloadInfo &info);
void PostAllocationConfigure() override;
void Execute() const override;
private:
std::unique_ptr<Decoder<float>> m_InputDecoder;
std::unique_ptr<Encoder<float>> m_OutputEncoder;
size_t m_NumElements;
};
} //namespace armnn
|