aboutsummaryrefslogtreecommitdiff
path: root/delegate/classic
diff options
context:
space:
mode:
authorNarumol Prangnawarat <narumol.prangnawarat@arm.com>2023-08-11 16:09:26 +0100
committerNarumol Prangnawarat <narumol.prangnawarat@arm.com>2023-08-21 13:34:54 +0100
commit5f94124ac11afbbf2d2a4cda539b316964802c76 (patch)
tree38d6f31517fe322cb0065a8c3e947801791a6405 /delegate/classic
parentc4f42340bd3d6664098c69d2fb044089aa39aea0 (diff)
downloadarmnn-5f94124ac11afbbf2d2a4cda539b316964802c76.tar.gz
IVGCVSW-7964 Fix UnidirectionalSequenceLstm
* Fix incorrect batch size and time size * Fix incorrect time major when max time =1 * Fix incorrect permutation * Fix incorrect scratch buffer * Unit tests Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com> Change-Id: I510fae55528be412a58d020e82bd283852e7800b
Diffstat (limited to 'delegate/classic')
-rw-r--r--delegate/classic/src/UnidirectionalSequenceLstm.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/delegate/classic/src/UnidirectionalSequenceLstm.hpp b/delegate/classic/src/UnidirectionalSequenceLstm.hpp
index 5fa6bb0260..3529640aa1 100644
--- a/delegate/classic/src/UnidirectionalSequenceLstm.hpp
+++ b/delegate/classic/src/UnidirectionalSequenceLstm.hpp
@@ -184,7 +184,7 @@ TfLiteStatus VisitUnidirectionalSequenceLstmOperator(DelegateData& delegateData,
const armnn::TensorInfo& inputTensorInfo = GetTensorInfoForTfLiteTensor(tfLiteInputTensor);
const armnn::TensorInfo& outputTensorInfo = GetTensorInfoForTfLiteTensor(tfLiteOutputTensor, true);
- unsigned int batchSize = inputTensorInfo.GetShape()[0];
+ unsigned int batchSize = desc.m_TimeMajor ? inputTensorInfo.GetShape()[1] : inputTensorInfo.GetShape()[0];
unsigned int outputSize = outputTensorInfo.GetShape()[2];
unsigned int numUnits = cellStateInInfo.GetShape()[1];