#define STRINGIFY_MACRO(s) #s
// ArmNN version components
-#define ARMNN_MAJOR_VERSION 21
+#define ARMNN_MAJOR_VERSION 22
#define ARMNN_MINOR_VERSION 0
#define ARMNN_PATCH_VERSION 0
```bash
$ python setup.py sdist
```
-As the result you will get `./dist/pyarmnn-21.0.0.tar.gz` file. As you can see it is platform independent.
+As the result you will get `./dist/pyarmnn-22.0.0.tar.gz` file. As you can see it is platform independent.
##### 5. Build the binary package
```bash
$ python setup.py bdist_wheel
```
-As the result you will get something like `./dist/pyarmnn-21.0.0-cp36-cp36m-linux_x86_64.whl` file. As you can see it is platform dependent.
+As the result you will get something like `./dist/pyarmnn-22.0.0-cp36-cp36m-linux_x86_64.whl` file. As you can see it is platform dependent.
# PyArmNN installation
Binary package is platform dependent, the name of the package will indicate the platform it was built for, e.g.:
-* Linux x86 64bit machine: pyarmnn-21.0.0-cp36-cp36m-*linux_x86_64*.whl
-* Linux Aarch 64 bit machine: pyarmnn-21.0.0-cp36-cp36m-*linux_aarch64*.whl
+* Linux x86 64bit machine: pyarmnn-22.0.0-cp36-cp36m-*linux_x86_64*.whl
+* Linux Aarch 64 bit machine: pyarmnn-22.0.0-cp36-cp36m-*linux_aarch64*.whl
The source package is platform independent but installation involves compilation of Arm NN python extension. You will need to have g++ compatible with C++ 14 standard and a python development library installed on the build machine.
```
Install PyArmNN from binary by pointing to the wheel file:
```bash
-$ pip install /path/to/pyarmnn-21.0.0-cp36-cp36m-linux_aarch64.whl
+$ pip install /path/to/pyarmnn-22.0.0-cp36-cp36m-linux_aarch64.whl
```
## Installing from source package
Install PyArmNN as follows:
```bash
-$ pip install /path/to/pyarmnn-21.0.0.tar.gz
+$ pip install /path/to/pyarmnn-22.0.0.tar.gz
```
If PyArmNN installation script fails to find Arm NN libraries it will raise an error like this
You can also verify it by running the following and getting output similar to below:
```bash
$ python -c "import pyarmnn as ann;print(ann.GetVersion())"
-'21.0.0'
+'22.0.0'
```
# PyArmNN API overview
# SPDX-License-Identifier: MIT
import os
-version_info = (21, 0, 0)
+version_info = (22, 0, 0)
__dev_version_env = os.getenv("PYARMNN_DEV_VER", "")
"""Compares expected Arm NN version and Arm NN version used to build the package.
Args:
- installed_armnn_version (str): Arm NN version used to generate the package (e.g. 21.0.0)
+ installed_armnn_version (str): Arm NN version used to generate the package (e.g. 22.0.0)
expected_armnn_version (str): Expected Arm NN version
Returns:
def test_armnn_version():
- check_armnn_version('21.0.0', '21.0.0')
+ check_armnn_version('22.0.0', '22.0.0')
def test_incorrect_armnn_version():
with pytest.raises(AssertionError) as err:
- check_armnn_version('21.0.0', '21.1.0')
+ check_armnn_version('22.0.0', '22.1.0')
- assert 'Expected ArmNN version is 21.1.0 but installed ArmNN version is 21.0.0' in str(err.value)
+ assert 'Expected ArmNN version is 22.1.0 but installed ArmNN version is 22.0.0' in str(err.value)
def test_armnn_version_patch_does_not_matter():
- check_armnn_version('21.0.0', '21.0.1')
+ check_armnn_version('22.0.0', '22.0.1')
importlib.reload(v)
- assert "21.0.0.dev1" == v.__version__
+ assert "22.0.0.dev1" == v.__version__
del os.environ["PYARMNN_DEV_VER"]
del v
importlib.reload(v)
- assert "21.0.0" == v.__arm_ml_version__
+ assert "22.0.0" == v.__arm_ml_version__
del os.environ["PYARMNN_DEV_VER"]
del v