Derek Lamberti | 6a5e5e8 | 2019-12-05 14:41:20 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2019 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
Colm Donelan | 0c47974 | 2021-12-10 12:43:54 +0000 | [diff] [blame^] | 8 | #include <armnn/backends/Workload.hpp> |
Derek Lamberti | 6a5e5e8 | 2019-12-05 14:41:20 +0000 | [diff] [blame] | 9 | |
| 10 | #include <arm_compute/core/Error.h> |
James Conroy | 99bf80d | 2020-02-20 11:14:49 +0000 | [diff] [blame] | 11 | #include <arm_compute/runtime/NEON/functions/NEDetectionPostProcessLayer.h> |
Derek Lamberti | 6a5e5e8 | 2019-12-05 14:41:20 +0000 | [diff] [blame] | 12 | |
| 13 | namespace armnn |
| 14 | { |
| 15 | |
| 16 | arm_compute::Status NeonDetectionPostProcessValidate(const TensorInfo& boxEncodings, |
| 17 | const TensorInfo& scores, |
| 18 | const TensorInfo& anchors, |
| 19 | const TensorInfo& detectionBoxes, |
| 20 | const TensorInfo& detectionClasses, |
| 21 | const TensorInfo& detectionScores, |
| 22 | const TensorInfo& numDetections, |
Keith Davis | 2d0679f | 2021-08-05 11:35:00 +0100 | [diff] [blame] | 23 | const DetectionPostProcessDescriptor &descriptor); |
Derek Lamberti | 6a5e5e8 | 2019-12-05 14:41:20 +0000 | [diff] [blame] | 24 | |
| 25 | class NeonDetectionPostProcessWorkload : public BaseWorkload<DetectionPostProcessQueueDescriptor> |
| 26 | { |
| 27 | public: |
| 28 | NeonDetectionPostProcessWorkload( |
| 29 | const DetectionPostProcessQueueDescriptor& descriptor, |
| 30 | const WorkloadInfo& info); |
| 31 | virtual void Execute() const override; |
| 32 | |
| 33 | private: |
James Conroy | 99bf80d | 2020-02-20 11:14:49 +0000 | [diff] [blame] | 34 | mutable arm_compute::NEDetectionPostProcessLayer m_Func; |
Derek Lamberti | 6a5e5e8 | 2019-12-05 14:41:20 +0000 | [diff] [blame] | 35 | |
| 36 | std::unique_ptr<arm_compute::Tensor> m_Anchors; |
| 37 | |
| 38 | }; |
| 39 | |
| 40 | } // namespace armnn |