aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNarumol Prangnawarat <narumol.prangnawarat@arm.com>2019-02-04 11:46:26 +0000
committerNina Drozd <nina.drozd@arm.com>2019-02-08 10:07:20 +0000
commit6d302bfb568962f3b6b6f012b260ce54f22d36a0 (patch)
tree86147d527e36751392539f363e5aa702e49f2fc7 /include
parent61980d472006abdf3778d23903fb3bec5916f1f2 (diff)
downloadarmnn-6d302bfb568962f3b6b6f012b260ce54f22d36a0.tar.gz
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 <narumol.prangnawarat@arm.com>
Diffstat (limited to 'include')
-rw-r--r--include/armnn/ILayerVisitor.hpp2
-rw-r--r--include/armnn/INetwork.hpp5
2 files changed, 6 insertions, 1 deletions
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.