From 9778de20ca20b9c2b81e984f0cc9aac0266645ad Mon Sep 17 00:00:00 2001 From: Fredrik Svedberg Date: Thu, 19 Dec 2024 11:17:54 +0100 Subject: [PATCH] Revert "MLBEDSW-9979 FullyConnected with keep_num_dims" This reverts commit d08d66158820b45cfaac9da3b643635d4a286852. Change-Id: Ibec18b49fa76a64f6f54dfc0ab4dc4de9b25d44f Signed-off-by: Fredrik Svedberg --- ethosu/regor/tflite/tflite_reader.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ethosu/regor/tflite/tflite_reader.cpp b/ethosu/regor/tflite/tflite_reader.cpp index ef955d0b..2da6584a 100644 --- a/ethosu/regor/tflite/tflite_reader.cpp +++ b/ethosu/regor/tflite/tflite_reader.cpp @@ -553,14 +553,6 @@ void TfLiteReader::ParseOperatorOptions(const std::shared_ptr &operat auto biasTens = std::make_shared(weight_tensor->Name() + "_bias", biasType, Shape(1, 1, 1, elems), buf); operation->ConnectInput(TensorUsage::Scales, biasTens); } - if ( options->keep_num_dims() ) - { - auto &ofmShape = operation->Output(TensorUsage::OFM)->shape; - assert(ofmShape[1] <= weight_tensor->StorageShape()[0]); - ofmShape = Shape(ofmShape[0], ofmShape[1]); - auto &ifmShape = operation->Input(TensorUsage::IFM)->shape; - ifmShape = Shape(ofmShape[0], ifmShape[-1]); - } } break; -- GitLab