From 737d9ff58b348b11234b6c2363390607d576177d Mon Sep 17 00:00:00 2001 From: Ferran Balaguer Date: Thu, 1 Aug 2019 09:58:08 +0100 Subject: IVGCVSW-3342 Add CL backend support for Quantized_LSTM (16bit cell state) !android-nn-driver:1685 Signed-off-by: Ferran Balaguer Signed-off-by: Matthew Bentham Change-Id: I17278562f72d4b77e22c3af25bf7199b9150a765 --- src/backends/cl/ClLayerSupport.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/backends/cl/ClLayerSupport.cpp') diff --git a/src/backends/cl/ClLayerSupport.cpp b/src/backends/cl/ClLayerSupport.cpp index 05539623a5..4ea6f2db3a 100644 --- a/src/backends/cl/ClLayerSupport.cpp +++ b/src/backends/cl/ClLayerSupport.cpp @@ -41,6 +41,7 @@ #include "workloads/ClPooling2dWorkload.hpp" #include "workloads/ClPreluWorkload.hpp" #include "workloads/ClResizeWorkload.hpp" +#include "workloads/ClQuantizedLstmWorkload.hpp" #include "workloads/ClQuantizeWorkload.hpp" #include "workloads/ClSoftmaxBaseWorkload.hpp" #include "workloads/ClSpaceToBatchNdWorkload.hpp" @@ -547,6 +548,24 @@ bool ClLayerSupport::IsPreluSupported(const armnn::TensorInfo &input, FORWARD_WORKLOAD_VALIDATE_FUNC(ClPreluWorkloadValidate, reasonIfUnsupported, input, alpha, output); } +bool ClLayerSupport::IsQuantizedLstmSupported(const TensorInfo& input, + const TensorInfo& previousCellStateIn, + const TensorInfo& previousOutputIn, + const TensorInfo& cellStateOut, + const TensorInfo& output, + const QuantizedLstmInputParamsInfo& paramsInfo, + Optional reasonIfUnsupported) const +{ + FORWARD_WORKLOAD_VALIDATE_FUNC(ClQuantizedLstmWorkloadValidate, + reasonIfUnsupported, + input, + previousCellStateIn, + previousOutputIn, + cellStateOut, + output, + paramsInfo); +} + bool ClLayerSupport::IsQuantizeSupported(const TensorInfo& input, const TensorInfo& output, Optional reasonIfUnsupported) const -- cgit v1.2.1