From ca44ffc43cbe6972f8cfc2a803626418554195c2 Mon Sep 17 00:00:00 2001 From: Teresa Charlin Date: Tue, 11 Aug 2020 23:00:18 +0100 Subject: IVGCVSW-5207 Add to PadLayer the functions to validate and infer shapes Signed-off-by: Teresa Charlin Change-Id: I63a6da418862b0a843637d73cbe178086f23bc84 --- src/armnn/layers/PadLayer.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/armnn/layers/PadLayer.hpp') diff --git a/src/armnn/layers/PadLayer.hpp b/src/armnn/layers/PadLayer.hpp index 16cdbf57d4..5664997597 100644 --- a/src/armnn/layers/PadLayer.hpp +++ b/src/armnn/layers/PadLayer.hpp @@ -29,6 +29,12 @@ public: /// @param [in] shapeInferenceMethod Indicates if output shape shall be overwritten or just validated. void ValidateTensorShapesFromInputs() override; + /// By default returns inputShapes if the number of inputs are equal to number of outputs, + /// otherwise infers the output shapes from given input shapes and layer properties. + /// @param [in] inputShapes The input shapes layer has. + /// @return A vector to the inferred output shape. + std::vector InferOutputShapes(const std::vector &inputShapes) const override; + void Accept(ILayerVisitor& visitor) const override; protected: -- cgit v1.2.1