ArmNN
 24.02
NeonQuantizeWorkload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include "NeonBaseWorkload.hpp"
9 
10 #include <arm_compute/runtime/NEON/functions/NEQuantizationLayer.h>
11 
12 namespace armnn {
13 
14 arm_compute::Status NeonQuantizeWorkloadValidate(const TensorInfo& input, const TensorInfo& output);
15 
16 class NeonQuantizeWorkload : public NeonBaseWorkload<QuantizeQueueDescriptor>
17 {
18 public:
19  NeonQuantizeWorkload(const QuantizeQueueDescriptor& descriptor, const WorkloadInfo& workloadInfo);
20  void Execute() const override;
21 
22 private:
23  mutable std::unique_ptr<arm_compute::NEQuantizationLayer> m_Layer;
24 };
25 
26 } // namespace armnn
armnn::QuantizeQueueDescriptor
Definition: WorkloadData.hpp:299
NeonBaseWorkload.hpp
armnn::NeonQuantizeWorkload::Execute
void Execute() const override
Definition: NeonQuantizeWorkload.cpp:42
armnn::NeonQuantizeWorkload
Definition: NeonQuantizeWorkload.hpp:16
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
armnn::NeonQuantizeWorkloadValidate
arm_compute::Status NeonQuantizeWorkloadValidate(const TensorInfo &input, const TensorInfo &output)
Definition: NeonQuantizeWorkload.cpp:18
armnn::Status
Status
Definition: Types.hpp:42
armnn::NeonQuantizeWorkload::NeonQuantizeWorkload
NeonQuantizeWorkload(const QuantizeQueueDescriptor &descriptor, const WorkloadInfo &workloadInfo)
Definition: NeonQuantizeWorkload.cpp:26
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
armnn::NeonBaseWorkload
Definition: NeonBaseWorkload.hpp:13