diff options
author | Derek Lamberti <derek.lamberti@arm.com> | 2019-12-05 14:41:20 +0000 |
---|---|---|
committer | Derek Lamberti <derek.lamberti@arm.com> | 2019-12-09 14:22:15 +0000 |
commit | 6a5e5e8b7e56f927d70ced3203d6e16df3fdd189 (patch) | |
tree | d961fa1349c6a51a595e51c29c1df42419a7a426 /src/backends/reference | |
parent | e5b8eb9fe8147a0849db08ef0898a0e8bef920b4 (diff) | |
download | armnn-6a5e5e8b7e56f927d70ced3203d6e16df3fdd189.tar.gz |
IVGCVSW-4227 Add CpuAcc backend support for DetectionPostProcess
Change-Id: I318bf92b8d1db593d9c30b9b4412bfecbe65bc12
Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
Diffstat (limited to 'src/backends/reference')
-rw-r--r-- | src/backends/reference/RefLayerSupport.cpp | 17 | ||||
-rw-r--r-- | src/backends/reference/RefLayerSupport.hpp | 9 |
2 files changed, 18 insertions, 8 deletions
diff --git a/src/backends/reference/RefLayerSupport.cpp b/src/backends/reference/RefLayerSupport.cpp index 30ce5c69b5..299503ddc6 100644 --- a/src/backends/reference/RefLayerSupport.cpp +++ b/src/backends/reference/RefLayerSupport.cpp @@ -637,10 +637,15 @@ bool RefLayerSupport::IsDequantizeSupported(const TensorInfo& input, return supported; } -bool RefLayerSupport::IsDetectionPostProcessSupported(const armnn::TensorInfo& input0, - const armnn::TensorInfo& input1, - const armnn::DetectionPostProcessDescriptor& descriptor, - armnn::Optional<std::string&> reasonIfUnsupported) const +bool RefLayerSupport::IsDetectionPostProcessSupported(const TensorInfo& boxEncodings, + const TensorInfo& scores, + const TensorInfo& anchors, + const TensorInfo& detectionBoxes, + const TensorInfo& detectionClasses, + const TensorInfo& detectionScores, + const TensorInfo& numDetections, + const DetectionPostProcessDescriptor& descriptor, + Optional<std::string&> reasonIfUnsupported) const { bool supported = true; @@ -651,10 +656,10 @@ bool RefLayerSupport::IsDetectionPostProcessSupported(const armnn::TensorInfo& i DataType::QuantisedSymm16 }; - supported &= CheckSupportRule(TypeAnyOf(input0, supportedInputTypes), reasonIfUnsupported, + supported &= CheckSupportRule(TypeAnyOf(boxEncodings, supportedInputTypes), reasonIfUnsupported, "Reference DetectionPostProcess: input 0 is not a supported type."); - supported &= CheckSupportRule(TypeAnyOf(input1, supportedInputTypes), reasonIfUnsupported, + supported &= CheckSupportRule(TypeAnyOf(scores, supportedInputTypes), reasonIfUnsupported, "Reference DetectionPostProcess: input 1 is not a supported type."); return supported; diff --git a/src/backends/reference/RefLayerSupport.hpp b/src/backends/reference/RefLayerSupport.hpp index 04b355ee0a..a7d6303d86 100644 --- a/src/backends/reference/RefLayerSupport.hpp +++ b/src/backends/reference/RefLayerSupport.hpp @@ -94,8 +94,13 @@ public: const TensorInfo& output, Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; - bool IsDetectionPostProcessSupported(const TensorInfo& input0, - const TensorInfo& input1, + bool IsDetectionPostProcessSupported(const TensorInfo& boxEncodings, + const TensorInfo& scores, + const TensorInfo& anchors, + const TensorInfo& detectionBoxes, + const TensorInfo& detectionClasses, + const TensorInfo& detectionScores, + const TensorInfo& numDetections, const DetectionPostProcessDescriptor& descriptor, Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |