From 6d302bfb568962f3b6b6f012b260ce54f22d36a0 Mon Sep 17 00:00:00 2001 From: Narumol Prangnawarat Date: Mon, 4 Feb 2019 11:46:26 +0000 Subject: IVGCVSW-2559 End to end tests for Detection PostProcess * end to end tests for Detection PostProcess float and uint8 * add anchors to AddDetectionPostProcessLayer * add anchors to VisitDetectionPostProcessLayer * refactor code Change-Id: I3c5a9a4a60b74c2246b4a27692bbf3c235163f90 Signed-off-by: Narumol Prangnawarat --- include/armnn/ILayerVisitor.hpp | 2 ++ include/armnn/INetwork.hpp | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/armnn/ILayerVisitor.hpp b/include/armnn/ILayerVisitor.hpp index f30396aab9..3b92733a81 100644 --- a/include/armnn/ILayerVisitor.hpp +++ b/include/armnn/ILayerVisitor.hpp @@ -79,9 +79,11 @@ public: /// Accept(ILayerVisitor&) function is invoked. /// @param layer - pointer to the layer which is calling back to this visit function. /// @param descriptor - Description of the Detection PostProcess layer. + /// @param anchors - Tensor for the anchors. /// @param name - Optional name for the layer. virtual void VisitDetectionPostProcessLayer(const IConnectableLayer* layer, const DetectionPostProcessDescriptor& descriptor, + const ConstTensor& anchors, const char* name = nullptr) = 0; /// Function that a fully connected layer without biases should call back to when its Accept(ILayerVisitor&) diff --git a/include/armnn/INetwork.hpp b/include/armnn/INetwork.hpp index 2213cee555..c4c67b70ae 100644 --- a/include/armnn/INetwork.hpp +++ b/include/armnn/INetwork.hpp @@ -132,10 +132,13 @@ public: /// Adds a Detection PostProcess layer to the network. /// @param descriptor - Description of the Detection PostProcess layer. + /// @param anchors - Tensor for anchors. /// @param name - Optional name for the layer. /// @return - Interface for configuring the layer. virtual IConnectableLayer* AddDetectionPostProcessLayer( - const DetectionPostProcessDescriptor& descriptor, const char* name = nullptr) =0; + const DetectionPostProcessDescriptor& descriptor, + const ConstTensor& anchors, + const char* name = nullptr) = 0; /// Adds a fully connected layer to the network. /// @param fullyConnectedDescriptor - Description of the fully connected layer. -- cgit v1.2.1