diff options
author | Ryan OShea <ryan.oshea3@arm.com> | 2023-08-01 17:15:24 +0100 |
---|---|---|
committer | TeresaARM <teresa.charlinreyes@arm.com> | 2023-08-03 21:52:34 +0000 |
commit | 7d1b1ca5b25a3aaeecebc537e8cbed2ee1ed3337 (patch) | |
tree | a4ae0db77581214c2d01740496b6d1a77b926aae /python/pyarmnn/src | |
parent | 0f3e9a09a90664fc7c6479f1d7b312a4671d9659 (diff) | |
download | armnn-7d1b1ca5b25a3aaeecebc537e8cbed2ee1ed3337.tar.gz |
IVGCVSW-7952 Output deprecation message when building pyarmnn
* Adds warning message when enabling pyarmnn through CMake
* Adds print out when building pyarmnn through setup.py
* Remove deprecated functions from batch matmul descripter
Signed-off-by: Ryan OShea <ryan.oshea3@arm.com>
Change-Id: I210ddbd0dd2f3b0d260a644bc62b8754375fbebe
Diffstat (limited to 'python/pyarmnn/src')
-rw-r--r-- | python/pyarmnn/src/pyarmnn/__init__.py | 4 | ||||
-rw-r--r-- | python/pyarmnn/src/pyarmnn/swig/modules/armnn_descriptors.i | 10 |
2 files changed, 3 insertions, 11 deletions
diff --git a/python/pyarmnn/src/pyarmnn/__init__.py b/python/pyarmnn/src/pyarmnn/__init__.py index 4e8401cdd4..b57723ba6d 100644 --- a/python/pyarmnn/src/pyarmnn/__init__.py +++ b/python/pyarmnn/src/pyarmnn/__init__.py @@ -1,4 +1,4 @@ -# Copyright © 2020 Arm Ltd. All rights reserved. +# Copyright © 2020,2023 Arm Ltd. All rights reserved. # SPDX-License-Identifier: MIT import inspect import sys @@ -6,6 +6,8 @@ import logging from ._generated.pyarmnn_version import GetVersion, GetMajorVersion, GetMinorVersion +print("WARNING: PyArmNN is deprecated. To use ArmNN on python, please use the tflite delegate. Expected to be removed in release 24.05.") + # Parsers try: diff --git a/python/pyarmnn/src/pyarmnn/swig/modules/armnn_descriptors.i b/python/pyarmnn/src/pyarmnn/swig/modules/armnn_descriptors.i index e755ef5982..1b4703c7bb 100644 --- a/python/pyarmnn/src/pyarmnn/swig/modules/armnn_descriptors.i +++ b/python/pyarmnn/src/pyarmnn/swig/modules/armnn_descriptors.i @@ -134,16 +134,6 @@ struct BatchMatMulDescriptor DataLayout m_DataLayoutX; DataLayout m_DataLayoutY; - static std::pair<std::pair<unsigned int, unsigned int>, std::pair<unsigned int, unsigned int>> GetAxesToMul( - const BatchMatMulDescriptor& desc, - const armnn::TensorShape& tensorXShape, - const armnn::TensorShape& tensorYShape); - - static std::pair<std::vector<unsigned int>, std::vector<unsigned int>> GetAxesNotMul( - const BatchMatMulDescriptor& desc, - const armnn::TensorShape& inputXShape, - const armnn::TensorShape& inputYShape); - %feature("docstring", " Static helper to get the two axes (for each input) for multiplication |