From 09e4d05b85cc5ed419d282cdfc0b153f83c3fa39 Mon Sep 17 00:00:00 2001 From: Kevin May Date: Mon, 6 Mar 2023 14:48:10 +0000 Subject: IVGCVSW-7243 Remove deprecated code due to be removed in 23.05 * Remove deprecated GetAxesToMul and GetAxesNotMul functions * Remove Deprecated version of file TensorCopyUtils.hpp Signed-off-by: Kevin May Change-Id: I1fb652ff8319e73616991f11c1a19daecc40833c --- include/armnn/Descriptors.hpp | 16 ---------------- src/armnn/Descriptors.cpp | 18 ------------------ src/backends/backendsCommon/test/CMakeLists.txt | 1 - src/backends/backendsCommon/test/TensorCopyUtils.hpp | 9 --------- 4 files changed, 44 deletions(-) delete mode 100644 src/backends/backendsCommon/test/TensorCopyUtils.hpp diff --git a/include/armnn/Descriptors.hpp b/include/armnn/Descriptors.hpp index 3a571a66e8..f1ac17f4c6 100644 --- a/include/armnn/Descriptors.hpp +++ b/include/armnn/Descriptors.hpp @@ -1588,22 +1588,6 @@ struct BatchMatMulDescriptor : BaseDescriptor DataLayout m_DataLayoutX; DataLayout m_DataLayoutY; - ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use ABI Stable " - "GetAxesToMul(DataLayout dataLayout, const TensorShape& tensorShape) instead.", - "23.05") - static std::pair, std::pair> GetAxesToMul( - const BatchMatMulDescriptor& desc, - const TensorShape& tensorXShape, - const TensorShape& tensorYShape); - - ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use ABI Stable " - "GetAxesNotMul(DataLayout dataLayout, const TensorShape& tensorShape) instead.", - "23.05") - static std::pair, std::vector> GetAxesNotMul( - const BatchMatMulDescriptor& desc, - const TensorShape& inputXShape, - const TensorShape& inputYShape); - /// Static helper to get the two axes (for each input) for multiplication static std::pair GetAxesToMul( DataLayout dataLayout, diff --git a/src/armnn/Descriptors.cpp b/src/armnn/Descriptors.cpp index 226d121edc..a1419cfbf7 100644 --- a/src/armnn/Descriptors.cpp +++ b/src/armnn/Descriptors.cpp @@ -455,24 +455,6 @@ uint32_t DepthwiseConvolution2dDescriptor::GetNumInputs() const return armnn::GetNumInputs(m_BiasEnabled); } -std::pair, std::pair> -BatchMatMulDescriptor::GetAxesToMul( - const BatchMatMulDescriptor& desc, - const TensorShape& tensorXShape, - const TensorShape& tensorYShape) -{ - return { GetAxesToMul(desc.m_DataLayoutX, tensorXShape), - GetAxesToMul(desc.m_DataLayoutY, tensorYShape) }; -} -std::pair, std::vector> BatchMatMulDescriptor::GetAxesNotMul( - const BatchMatMulDescriptor& desc, - const TensorShape& inputXShape, - const TensorShape& inputYShape) -{ - return { GetAxesNotMul(desc.m_DataLayoutX, inputXShape), - GetAxesNotMul(desc.m_DataLayoutY, inputYShape) }; -} - std::pair BatchMatMulDescriptor::GetAxesToMul( DataLayout dataLayout, const TensorShape& tensorShape) diff --git a/src/backends/backendsCommon/test/CMakeLists.txt b/src/backends/backendsCommon/test/CMakeLists.txt index 7c24f9ca10..5d8fb1a953 100644 --- a/src/backends/backendsCommon/test/CMakeLists.txt +++ b/src/backends/backendsCommon/test/CMakeLists.txt @@ -63,7 +63,6 @@ list(APPEND armnnBackendsCommonUnitTests_sources SubtractionEndToEndTestImpl.hpp TileEndToEndTestImpl.hpp TransposeEndToEndTestImpl.hpp - TensorCopyUtils.hpp WorkloadFactoryHelper.hpp WorkloadUtilsTest.cpp layerTests/AbsTestImpl.cpp diff --git a/src/backends/backendsCommon/test/TensorCopyUtils.hpp b/src/backends/backendsCommon/test/TensorCopyUtils.hpp deleted file mode 100644 index e0aa7a0c3c..0000000000 --- a/src/backends/backendsCommon/test/TensorCopyUtils.hpp +++ /dev/null @@ -1,9 +0,0 @@ -// -// Copyright © 2017 Arm Ltd and Contributors. All rights reserved. -// SPDX-License-Identifier: MIT -// - -// This file is deprecated and will be removed soon. -// Please use the new header in armnnTestUtils instead. -// This will use the new armnnTestUtils header. -#include \ No newline at end of file -- cgit v1.2.1