diff options
Diffstat (limited to 'src/backends/neon/workloads/NeonDetectionPostProcessWorkload.hpp')
-rw-r--r-- | src/backends/neon/workloads/NeonDetectionPostProcessWorkload.hpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/backends/neon/workloads/NeonDetectionPostProcessWorkload.hpp b/src/backends/neon/workloads/NeonDetectionPostProcessWorkload.hpp new file mode 100644 index 0000000000..f7f0ebffb9 --- /dev/null +++ b/src/backends/neon/workloads/NeonDetectionPostProcessWorkload.hpp @@ -0,0 +1,40 @@ +// +// Copyright © 2019 Arm Ltd. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#pragma once + +#include <backendsCommon/Workload.hpp> + +#include <arm_compute/core/Error.h> +#include <arm_compute/runtime/CPP/functions/CPPDetectionPostProcessLayer.h> + +namespace armnn +{ + +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 &desc); + +class NeonDetectionPostProcessWorkload : public BaseWorkload<DetectionPostProcessQueueDescriptor> +{ +public: + NeonDetectionPostProcessWorkload( + const DetectionPostProcessQueueDescriptor& descriptor, + const WorkloadInfo& info); + virtual void Execute() const override; + +private: + mutable arm_compute::CPPDetectionPostProcessLayer m_Func; + + std::unique_ptr<arm_compute::Tensor> m_Anchors; + +}; + +} // namespace armnn
\ No newline at end of file |