From aeb4a9c8ecc0707e0d82f886c07b300fe00920dc Mon Sep 17 00:00:00 2001 From: Francis Murtagh Date: Wed, 18 May 2022 11:46:10 +0100 Subject: BugFix: Overload Deprecated IsUnidirectionalSequenceLstmSupported * Signature change is ABI/API break, overloaded and forwarded to new function. Signed-off-by: Francis Murtagh Change-Id: I8590a6fd65986b5aeff905c1e761cb5c51042e99 --- src/armnn/BackendHelper.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'src/armnn/BackendHelper.cpp') diff --git a/src/armnn/BackendHelper.cpp b/src/armnn/BackendHelper.cpp index 9f97c26a75..2d70d7add0 100644 --- a/src/armnn/BackendHelper.cpp +++ b/src/armnn/BackendHelper.cpp @@ -1406,6 +1406,32 @@ bool LayerSupportHandle::IsTransposeSupported(const TensorInfo& input, reasonIfUnsupported); } +// Forwarding function to maintain ABI stability +bool LayerSupportHandle::IsUnidirectionalSequenceLstmSupported(const TensorInfo& input, + const TensorInfo& outputStateIn, + const TensorInfo& cellStateIn, + const TensorInfo& output, + const Optional& hiddenStateOutput, + const Optional& cellStateOutput, + const LstmDescriptor& descriptor, + const LstmInputParamsInfo& paramsInfo, + Optional reasonIfUnsupported) +{ + TensorInfo hiddenStateOutputVal = hiddenStateOutput.has_value() ? hiddenStateOutput.value() : TensorInfo(); + TensorInfo cellStateOutputVal = cellStateOutput.has_value() ? cellStateOutput.value() : TensorInfo(); + TensorInfos infos{input, outputStateIn, cellStateIn, hiddenStateOutputVal, cellStateOutputVal, output}; + + return IsUnidirectionalSequenceLstmSupported(input, + outputStateIn, + cellStateIn, + hiddenStateOutputVal, + cellStateOutputVal, + output, + descriptor, + paramsInfo, + reasonIfUnsupported); +} + bool LayerSupportHandle::IsUnidirectionalSequenceLstmSupported(const TensorInfo& input, const TensorInfo& outputStateIn, const TensorInfo& cellStateIn, -- cgit v1.2.1