From ec67a0f08e0f96a5aebf3cac65331c67f6649f5e Mon Sep 17 00:00:00 2001 From: Mike Kelly Date: Fri, 25 Nov 2022 13:55:24 +0000 Subject: IVGCVSW-7209 Remove deprecated code due to be removed in 23.02 * Removed weights and bias from Convolution, DepthwiseConv & FullyConnected layers * Removed the weight and bias ConstTensorHandles from the QueueDescriptors * Updated Workloads to take tensors from WorkloadInfo rather than the QueueDescriptors * Removed unused RedirectMembersToConstantInputs optimization and tests. Signed-off-by: Teresa Charlin Signed-off-by: Mike Kelly Change-Id: I9ffcdc4a1c0dff725539dd69fc435b700bd98a56 --- src/armnn/optimizations/FoldPadIntoLayer2d.hpp | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'src/armnn/optimizations/FoldPadIntoLayer2d.hpp') diff --git a/src/armnn/optimizations/FoldPadIntoLayer2d.hpp b/src/armnn/optimizations/FoldPadIntoLayer2d.hpp index 7a50c4ac06..874749fda9 100644 --- a/src/armnn/optimizations/FoldPadIntoLayer2d.hpp +++ b/src/armnn/optimizations/FoldPadIntoLayer2d.hpp @@ -1,5 +1,5 @@ // -// Copyright © 2022 Arm Ltd and Contributors. All rights reserved. +// Copyright © 2017,2022 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // @@ -196,21 +196,14 @@ public: if (newConv2dLayer != nullptr) { const auto conv2dLayer = PolymorphicDowncast(&connection.GetOwningLayer()); - // Copy weights and bias to the new convolution layer ARMNN_ASSERT_MSG(newConv2dLayer->GetInputSlot(1).GetConnection() != nullptr, "FoldPadIntoConvolution2d: New convolution layer is missing connection to weights layer"); - // Deprecated. Removal date is 23.02. - newConv2dLayer->m_Weight = std::move(conv2dLayer->m_Weight); - if (conv2dLayer->GetParameters().m_BiasEnabled) { ARMNN_ASSERT_MSG(newConv2dLayer->GetInputSlot(2).GetConnection() != nullptr, "FoldPadIntoConvolution2d: New convolution layer is missing " "connection to bias layer."); - - // Deprecated. Removal date is 23.02. - newConv2dLayer->m_Bias = std::move(conv2dLayer->m_Bias); } } } @@ -230,24 +223,18 @@ public: if (newConv2dLayer != nullptr) { const auto conv2dLayer = PolymorphicDowncast(&connection.GetOwningLayer()); - // Copy weights and bias to the new convolution layer ARMNN_ASSERT_MSG(newConv2dLayer->GetInputSlot(1).GetConnection() != nullptr, - "FoldPadIntoDepthwiseConvolution2d: New convolution layer is missing connection to weights layer"); - - // Deprecated. Removal date is 23.02. - newConv2dLayer->m_Weight = std::move(conv2dLayer->m_Weight); + "FoldPadIntoDepthwiseConvolution2d: New convolution layer is missing " + "connection to weights layer"); if (conv2dLayer->GetParameters().m_BiasEnabled) { ARMNN_ASSERT_MSG(newConv2dLayer->GetInputSlot(2).GetConnection() != nullptr, "FoldPadIntoConvolution2d: New convolution layer is missing " "connection to bias layer."); - // Deprecated. Removal date is 23.02. - newConv2dLayer->m_Bias = std::move(conv2dLayer->m_Bias); } } } - protected: FoldPadIntoDepthwiseConvolution2dImpl() = default; ~FoldPadIntoDepthwiseConvolution2dImpl() = default; -- cgit v1.2.1