diff options
author | Keith Davis <keith.davis@arm.com> | 2021-08-05 11:35:00 +0100 |
---|---|---|
committer | KeithARM <keith.davis@arm.com> | 2021-08-10 11:53:19 +0000 |
commit | 2d0679f33f75c43e7169fe0f0ee2d15d0620e091 (patch) | |
tree | 9f259a41e3208aa37a19330b63e0aabac607cacf /src/backends/neon/workloads/NeonDetectionPostProcessWorkload.cpp | |
parent | d218d9804723e78da9bbd36e6211b3310426852b (diff) | |
download | armnn-2d0679f33f75c43e7169fe0f0ee2d15d0620e091.tar.gz |
IVGCVSW-6249 Add ProfilingDetails Macros to all workloads in Neon
Signed-off-by: Keith Davis <keith.davis@arm.com>
Change-Id: I7be77712a9f790928219ce91222d46cc766ab9dd
Diffstat (limited to 'src/backends/neon/workloads/NeonDetectionPostProcessWorkload.cpp')
-rw-r--r-- | src/backends/neon/workloads/NeonDetectionPostProcessWorkload.cpp | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/src/backends/neon/workloads/NeonDetectionPostProcessWorkload.cpp b/src/backends/neon/workloads/NeonDetectionPostProcessWorkload.cpp index 36f1cd98de..a9cb5c40be 100644 --- a/src/backends/neon/workloads/NeonDetectionPostProcessWorkload.cpp +++ b/src/backends/neon/workloads/NeonDetectionPostProcessWorkload.cpp @@ -14,19 +14,19 @@ namespace armnn { -arm_compute::DetectionPostProcessLayerInfo MakeInfo(const DetectionPostProcessDescriptor& desc) +arm_compute::DetectionPostProcessLayerInfo MakeInfo(const DetectionPostProcessDescriptor& descriptor) { - return arm_compute::DetectionPostProcessLayerInfo(desc.m_MaxDetections, - desc.m_MaxClassesPerDetection, - desc.m_NmsScoreThreshold, - desc.m_NmsIouThreshold, - desc.m_NumClasses, - { desc.m_ScaleX, - desc.m_ScaleY, - desc.m_ScaleW, - desc.m_ScaleH }, - desc.m_UseRegularNms, - desc.m_DetectionsPerClass); + return arm_compute::DetectionPostProcessLayerInfo(descriptor.m_MaxDetections, + descriptor.m_MaxClassesPerDetection, + descriptor.m_NmsScoreThreshold, + descriptor.m_NmsIouThreshold, + descriptor.m_NumClasses, + { descriptor.m_ScaleX, + descriptor.m_ScaleY, + descriptor.m_ScaleW, + descriptor.m_ScaleH }, + descriptor.m_UseRegularNms, + descriptor.m_DetectionsPerClass); } arm_compute::Status NeonDetectionPostProcessValidate(const TensorInfo& boxEncodings, @@ -36,9 +36,9 @@ arm_compute::Status NeonDetectionPostProcessValidate(const TensorInfo& boxEncodi const TensorInfo& detectionClasses, const TensorInfo& detectionScores, const TensorInfo& numDetections, - const DetectionPostProcessDescriptor &desc) + const DetectionPostProcessDescriptor &descriptor) { - arm_compute::DetectionPostProcessLayerInfo info = MakeInfo(desc); + arm_compute::DetectionPostProcessLayerInfo info = MakeInfo(descriptor); const arm_compute::TensorInfo aclBoxEncodings = armcomputetensorutils::BuildArmComputeTensorInfo(boxEncodings); @@ -77,6 +77,12 @@ NeonDetectionPostProcessWorkload::NeonDetectionPostProcessWorkload( const WorkloadInfo& info) : BaseWorkload<DetectionPostProcessQueueDescriptor>(descriptor, info) { + // Report Profiling Details + ARMNN_REPORT_PROFILING_WORKLOAD_DESC("NeonDetectionPostProcessWorkload_Construct", + descriptor.m_Parameters, + info, + this->GetGuid()); + m_Anchors = std::make_unique<arm_compute::Tensor>(); BuildArmComputeTensor(*m_Anchors, descriptor.m_Anchors->GetTensorInfo()); @@ -104,7 +110,7 @@ NeonDetectionPostProcessWorkload::NeonDetectionPostProcessWorkload( void NeonDetectionPostProcessWorkload::Execute() const { - ARMNN_SCOPED_PROFILING_EVENT_NEON("NeonDetectionPostProcessWorkload_Execute"); + ARMNN_SCOPED_PROFILING_EVENT_NEON_GUID("NeonDetectionPostProcessWorkload_Execute", this->GetGuid()); m_Func.run(); } |