blob: f7f0ebffb9d5608687d86c3a23ea133ab84816d5 [file] [log] [blame]
Derek Lamberti6a5e5e82019-12-05 14:41:20 +00001//
2// Copyright © 2019 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
8#include <backendsCommon/Workload.hpp>
9
10#include <arm_compute/core/Error.h>
11#include <arm_compute/runtime/CPP/functions/CPPDetectionPostProcessLayer.h>
12
13namespace armnn
14{
15
16arm_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 &desc);
24
25class NeonDetectionPostProcessWorkload : public BaseWorkload<DetectionPostProcessQueueDescriptor>
26{
27public:
28 NeonDetectionPostProcessWorkload(
29 const DetectionPostProcessQueueDescriptor& descriptor,
30 const WorkloadInfo& info);
31 virtual void Execute() const override;
32
33private:
34 mutable arm_compute::CPPDetectionPostProcessLayer m_Func;
35
36 std::unique_ptr<arm_compute::Tensor> m_Anchors;
37
38};
39
40} // namespace armnn