ArmNN
 24.02
NeonDetectionPostProcessWorkload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2019 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/core/Error.h>
11 #include <arm_compute/runtime/NEON/functions/NEDetectionPostProcessLayer.h>
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,
23  const DetectionPostProcessDescriptor &descriptor);
24 
25 class NeonDetectionPostProcessWorkload : public NeonBaseWorkload<DetectionPostProcessQueueDescriptor>
26 {
27 public:
29  const DetectionPostProcessQueueDescriptor& descriptor,
30  const WorkloadInfo& info);
31  virtual void Execute() const override;
32 
33 private:
34  mutable arm_compute::NEDetectionPostProcessLayer m_Func;
35 
36  std::unique_ptr<arm_compute::Tensor> m_Anchors;
37 
38 };
39 
40 } // namespace armnn
armnn::NeonDetectionPostProcessWorkload::NeonDetectionPostProcessWorkload
NeonDetectionPostProcessWorkload(const DetectionPostProcessQueueDescriptor &descriptor, const WorkloadInfo &info)
Definition: NeonDetectionPostProcessWorkload.cpp:75
NeonBaseWorkload.hpp
armnn::NeonDetectionPostProcessWorkload
Definition: NeonDetectionPostProcessWorkload.hpp:25
armnn::NeonDetectionPostProcessValidate
arm_compute::Status NeonDetectionPostProcessValidate(const TensorInfo &boxEncodings, const TensorInfo &scores, const TensorInfo &anchors, const TensorInfo &detectionBoxes, const TensorInfo &detectionClasses, const TensorInfo &detectionScores, const TensorInfo &numDetections, const DetectionPostProcessDescriptor &descriptor)
Definition: NeonDetectionPostProcessWorkload.cpp:32
armnn::NeonDetectionPostProcessWorkload::Execute
virtual void Execute() const override
Definition: NeonDetectionPostProcessWorkload.cpp:111
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
armnn::DetectionPostProcessQueueDescriptor
Definition: WorkloadData.hpp:239
armnn::BoostLogSeverityMapping::info
@ info
armnn::Status
Status
Definition: Types.hpp:42
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
armnn::NeonBaseWorkload
Definition: NeonBaseWorkload.hpp:13