aboutsummaryrefslogtreecommitdiff
path: root/python/pyarmnn
AgeCommit message (Collapse)Author
2024-05-14IVGCVSW-8261 Ensure PyArmNN has been updated with new features added in ArmNNNikhil Raj
* Add layers missing in PyArmNN Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: Ia821105f9d235dcf7f9472e54849d268e07fb9a9
2024-05-13IVGCVSW-8259 Reivew and update documentation related with operators for 24.05Nikhil Raj
* Debug layer supported data types updated * Added deprecation notices in md files to functionalities that will be removed Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: I8673bdc2d596bfa4de751fc95dae010b195ad0b1
2023-11-15IVGCVSW-7936 Update ArmNN minor version and opaque delegate versionNikhil Raj
* Opaque delegate was broken by https://review.mlplatform.org/c/ml/armnn/+/10493/ * Updated ArmNN minor version in pyarmnn Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: I9eb3a2901c9383b95079b092e05373680781b1ab
2023-09-07Dependabot github ticket #13 Update requests version in pyarmnnRyan OShea
* Updates requests dependency version to 2.31.0 Signed-off-by: Ryan OShea <ryan.oshea3@arm.com> Change-Id: Ibc5780a057db677a868fd0ba37343b35f252ec6e
2023-08-03IVGCVSW-7952 Output deprecation message when building pyarmnnRyan OShea
* 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
2023-08-02IVGCVSW-7703 Ensure PyArmNN has been updated with new features added in ArmNNRyan OShea
* Adds BatchMatMul layer and descriptor to pyarmnn * Adds ReverseV2 layer to pyarmnn * Adds ElementWiseBinary layer and descriptor to pyarmnn * Adds Tile layer and descriptor to pyarmnn * Adds network test for each layer Signed-off-by: Ryan OShea <ryan.oshea3@arm.com> Change-Id: Iac70fb7f857978d676d3b67a4cc20fb5f3270676
2023-08-01Revert "IVGCVSW-7703 Ensure PyArmNN has been updated with new"Nikhil Raj Arm
This reverts commit 9a5e5b7032788249055f40edd763420f6bdba8fe. Reason for revert: Build failing while building pyarmnn Change-Id: I465c494ee1a19a830bf85a8ab078ead08cefccd4
2023-07-31IVGCVSW-7703 Ensure PyArmNN has been updated with newRyan OShea
features added in ArmNN * Adds BatchMatMul layer and descriptor to pyarmnn * Adds ReverseV2 layer to pyarmnn * Adds ElementWiseBinary layer and descriptor to pyarmnn * Adds Tile layer and descriptor to pyarmnn * Adds network test for each layer Signed-off-by: Ryan OShea <ryan.oshea3@arm.com> Change-Id: I07116d9e7b1eb6b6f8a687d8ba7cfbd11c912d0d
2023-07-18Change expected pyarmnn version in pyarmnn/test_setup.pyNikhil Raj
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: Ibabb80f2ece0e0ad2314ebb45fea051667b82b8d
2023-07-17Update version in pyarmnnNikhil Raj
* This updates checks in pyarmnn to new version * Updates documents to newer version Change-Id: If1321ea4e74a10993b205cce1d3618844b0ddc06 Signed-off-by: Nikhil Raj <nikhil.raj@arm.com>
2023-07-17Update Arm NN version in pyamnn version.pyNikhil Raj
* We updated Arm NN version in https://review.mlplatform.org/c/ml/armnn/+/9885 Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: I37e771be66ca7b907b08648a6bb07de4f0036ae3
2023-04-20IVGCVSW-7685 PyArmNN test failures in nightlyTeresa Charlin
* This was originated when setting scale to 1 in quantization parameters Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: Ic3192a6985f3afc595952eb5bfdaa9b628bbb88d
2023-03-14IVGCVSW-7473 Update python version to 3.8 to build pyarmnn in Ubuntu 20.04Nikhil Raj
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: Ied41eda5c1979d9a2dae192b437fbeb688a0fd13
2023-02-28Add constant version of IConnectableLayer::GetConstantTensorsByRefMatthew Bentham
This makes it easier to use, particularly in backends where it is common to pass around const pointers to IConnectableLayer. The non-constant version is rewritten to use the constant version. Signed-off-by: Matthew Bentham <matthew.bentham@arm.com> Change-Id: Id3a8384447e93c213299a85ade9a667df5960534
2023-01-31GitHub #651: Add PyArmNN installation instructions for prebuilt binariesFrancis Murtagh
* Previous instruction didn't generate SWIG wrappers. Signed-off-by: Francis Murtagh <francis.murtagh@arm.com> Change-Id: I8e4a28ad334fc7fec1740d520d1fde9359c30397
2022-12-23IVGCVSW-7369 Fix failing PyArmNN testCathal Corbett
* test_optimizer_options_fail test failing due to BF16 check removed from OptimizerOptions() in IVGCVSW-7214 Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: Ibce5c0b0324f6d8761ffcb3e84532ca2656fcbc0
2022-12-12Optimize the calling of IsLayerSupported().Cathal Corbett
* Done as part of 22.11/23.02 innovation days. * IsLayerSupported() is called in model prepare (delegate, android-nn-driver and shim/support_library) and again in ArmNN once model otimization is performed. * From calling IsLayerSupported() the first time, we should know that the layers are supported and what backend they are supported on. * Solution is to set the BackendId of the IConnectableLayer when IsLayerSupported() is called the first time, * In the Optimize() function we then check if the backend is set. If so, we do not call IsLayerSupported() again. * In the case a layer that is supported gets optimized, then the BackendId of that layer get set to "Unknown" for the new optimized layer and IsLayerSupported() will get called on the newly optimized layer. * Includes bug fix IVGCVSW-7213 for Android Mean FP16 CpuAcc tests. Also related to bug IVGCVSW-7211. Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: I7a7820d0cdb079ffb5a3a2e0c44e252f652df53b
2022-11-16IVGCVSW-7214 Disable BF16-Turbo-Mode and remove conversion layersRyan OShea
- Remove Bf16ToFp32 Conversion Layer - Remove Fp32ToBf16 Conversion Layer - Remove B16 Conversion tests * Throw exception if m_ReduceFp32ToBf16 optimzer option is set to true * Provide comments to enable fast math in order to use bf16 * Update docs to inform users to enable fast math for bf16 Execute Network Changes * Require bf16_turbo_mode to also have fast_math_enabled set to true - Remove setting m_ReduceFp32ToBf16 optimizer option Signed-off-by: Ryan OShea <ryan.oshea3@arm.com> Change-Id: Ibaa6da9d29c96a1ce32ff5196b0847fde9f04a1c
2022-10-05IVGCVSW-7122 Remove support for py35 in pyarmnn/tox.iniNikhil Raj
* As part of testing IVGCVSW-7122, pyarmnn tests were failing as py35 is no more the default version in Odroids. Also we do mention Python 3.6+ as the supported version in pyarmnn/README.md Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: I39407ba8689fbb064c32841d16d66c5080acbc10
2022-10-04MLCE-609 Update PyArmNN Installation GuideRyan OShea
This reduces build steps to a single guide rather than providing multiple options - Remove Standalone build from documentation - Remove Wheel installation from documentation Signed-off-by: Ryan OShea <ryan.oshea3@arm.com> Change-Id: Ic1411eba5889434b2e1761ce2b9c8fdd2453b352
2022-09-06IVGCVSW-7006 Remove deprecated code due to be removed in 22.08Teresa Charlin
* AddConv and AddDWConv with weights and bias * ResizeBilinearDescriptor * b,blacklist option in accuracy tool !android-nn-driver:8172 Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: Ibbc04fd18be7f938b11590bf67cd7af103cb4d99
2022-08-30IVGCVSW-7105: BatchMatMul Optional Parameter SupportSamuel Yap
* Added transpose parameters to pre-transpose each input tensor's slices * Added adjoint parameters to pre-adjoint each input tensor's slices * Small refactoring (BatchMatMulDescriptor static helpers and BatchMatMulImpl constructor) * Updated input validation and output shape inference for parameters * Additional layer unit tests for parameters added * Versionings incremented Signed-off-by: Samuel Yap <samuel.yap@arm.com> Change-Id: Ibe5242a8a5bf604c13de0dc65844fd6c421cc667
2022-08-05IVGCVSW-6992 Update Major, Minor release versions for 22.08Cathal Corbett
Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: Ic134f73f217fff420fec089cd817e48ef62641c6
2022-07-27Documentation refactor and updates.Cathal Corbett
* Includes updating ContributorGuide.md with information section 'Contributing code to Arm NN'. * Renaming of ContributorGuide.md to CONTRIBUTING.md. Also renamed associated licence file and links in other pages that call the md file. Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: Ic3336d78b64ae41af07ea9fd03631bb161613c4b
2022-07-08IVGCVSW-7024 Add missing license info for reuse lintJim Flynn
Signed-off-by: Jim Flynn <jim.flynn@arm.com> Change-Id: I97dee6982e0a7be01c13e9e803c0997547a39ff1
2022-06-28IVGCVSW-6784 Fix PyArmNN docs for ONNX parserCathal Corbett
* Solves GitHub issue: https://github.com/ARM-software/armnn/issues/611 * python/pyarmnn/README.md update Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: I1cc7bfa536638db86ed4a83e41b14fce031bb59c
2022-06-22Revert "Revert "IVGCVSW-6873 Import inputs but don't export outputs fails.""Francis Murtagh
This reverts commit a0f8b15d4ddb5075f380003ff31b271d389d3b66. Reason for revert: <Test ClDmaBufInternalTests review > Change-Id: Ibc4a77fa008643849da7330391942e4c87b941e2
2022-06-21Revert "IVGCVSW-6873 Import inputs but don't export outputs fails."James Conroy
This reverts commit 03bf98a8bc51ad20eef4b9ca5fbf6ce15e063721. Reason for revert: Caused failures in tests located in internal repo. Change-Id: If35cb0ede349b270e4e7827324382e09455d8cfa
2022-06-20IVGCVSW-6873 Import inputs but don't export outputs fails.Colm Donelan
Only one bool is used to indicate whether inputs should be imported. However, its possible for the user to want to import inputs but not export outputs. In addition it's possible for a user to enabled import during optimize but then pass a memory source that does not require import. * Add m_ExportEnabled to INetwork.hpp. * Modify Network::dNetwork to consider both m_ImportEnabled and m_ExportEnabled. * Add ValidateSourcesMatchOptimizedNetwork to LoadedNetwork to validate import options between optimize and network load. * Update the TfLite delegate consider exportEnabled flag in the optimizer. !armnn-internal-tests:425350 Signed-off-by: Colm Donelan <colm.donelan@arm.com> Change-Id: I776eab81595898e43f91ab40306962eae61329f4
2022-05-24IVGCVSW-6550 Synchronize include/armnn and PyArmNN swig modules.Colm Donelan
* armnn_network.i: IVGCVSW-6127 ConstTensorsAsInput: DepthwiseConvolution2d. * armnn_descriptors.i: IVGCVSW-6127 ConstTensorsAsInput: DepthwiseConvolution2d. MLCE-604 Add Unidirectional Sequence Lstm support to TFLite. MLCE-530 Add support for UnidirectionalSequenceLstm to RefWorkload Signed-off-by: Colm Donelan <colm.donelan@arm.com> Change-Id: I0c054db17dbf9a1eb14c12d1fd1337f8003a92d3
2022-05-04IVGCVSW-6865 Add GATHERNd to PyArmNNTeresa Charlin
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: I7c80299f539b64682a6a68cd1709089f71600cd9
2022-04-28Fix pyarmnn Unittest failure in MasterNikhil Raj
* Update more-itertools to 8.12 Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: I572340793db0e7da993679466d723c61d6d2bab2
2022-04-13MLECO-2493 Add python OD example with TFLite delegateRaviv Shalev
Signed-off-by: Raviv Shalev <raviv.shalev@arm.com> Change-Id: I25fcccbf912be0c5bd4fbfd2e97552341958af35
2022-03-23IVGCVSW-6706 Move headers to profiling/client/includeJim Flynn
!android-nn-driver:7337 Change-Id: Ide401623829cc99fb9b51e9bbce3482ce706a8dd Signed-off-by: Jim Flynn <jim.flynn@arm.com>
2022-03-09IVGCVSW-6749 Add Pooling3d to PyArmnnRyan OShea
* Add layer to __init__.py * Add descriptor for Pooling3d * Add descriptor test for Pooling3d * Add network test for Pooling3d layer Signed-off-by: Ryan OShea <ryan.oshea3@arm.com> Change-Id: Id5e1587a89d3ffb5bee7764a92b299fa43a2ae35
2022-03-01IVGCVSW-6704 Change the namespace from armnn::profiling to arm::pipeCathal Corbett
* Updated ABI version to 29 due to being the first ABI break in 22.05 !android-nn-driver:7226 Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: I9c50007dcd5b5e792757e7bd1213606df5ffec36
2022-02-17Add back the wav file needed for testing Wav2Letter guideNikhil Raj
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: Iaf118e0c4313d810225eac773f1a7d84ea559a68
2022-02-16IVGCVSW-6399 Remove deprecated code 22.02 (FullyConnected)Francis Murtagh
* Remove deprecated INetwork::AddFullyconnectedLayer() taking weights as argument as they are now taken as separate input layers. * Updated test that was using the deprecated function. * Remove calls in pyarmnn Signed-off-by: Francis Murtagh <francis.murtagh@arm.com> Change-Id: Ibc52ac7fa57afd9033eb226bbc24a09e88a7d361
2022-02-04MLECO-2079 Adding the python KWS examplealexander
Signed-off-by: Eanna O Cathain <eanna.ocathain@arm.com> Change-Id: Ie1463aaeb5e3cade22df8f560ae99a8e1c4a9c17
2022-01-14IVGCVSW-6633 SubgraphView uses IConnectableLayer rather than Layer in its ↵Francis Murtagh
m_Layers * Added IInputSlot, IOutputSlot and IConnectableLayer to SubgraphView * Deprecated old member functions * Removed deprecated calls in ArmNN * Added GetOwningIConnectableLayer function to IOutputSlot * Updates ArmNN Core Major version for IOutputSlot ABI break * Updated Minor version of TfliteParser, OnnxParser and Delegate Signed-off-by: Francis Murtagh <francis.murtagh@arm.com> Change-Id: I2a8611bfabf5ae09d3602fe6a4bef166e18117b9
2021-12-17Remove deprecated code for 22.02Jan Eilers
Signed-off-by: Jan Eilers <jan.eilers@arm.com> Change-Id: I9114288e705936b12129b01bfd482bbe1260f80b
2021-12-09IVGCVSW-6579 Update PyArmNN to comply with inclusive language guidelines.Cathal Corbett
* Update pylintconfig removing reference to black and white list. * Update tox.ini changing whitelist_externals to allowlist_externals. * Update the pyarmnn speech recognition example from 'he' to 'they'. Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: I5ce3b9d6a30df6d2e9130a934741b46b594e53d2
2021-11-26IVGCVSW-6589 AddReduceLayer to PyArmNNRyan OShea
* AddReduceLayer to PyArmNN armnn_network.i * AddReduceDescriptor to PyArmNN armnn_descriptors.i * Add layer to test_network.py * Add descriptor unit tests to test_descriptors.py Signed-off-by: Ryan OShea <ryan.oshea3@arm.com> Change-Id: I2a8706052baf8f9c0038a5ea327d73b8f3ea1961
2021-11-23IVGCVSW-6610 No bounds checking performed when indexing PermutationVector ↵Cathal Corbett
elements. * Added out of bounds index error checking to PermutationVector operator[] method in Types.hpp. * Added armnn unit tests to UnitsTests.cpp to check error when using PermutationVector alone and with TransposeDescriptor and PermuteDescriptor. * Added pyarmnn unit test to check error when using PermutationVector. Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: Ie5a8090f07b571a6bdf79a8cad621c31cc1891b7
2021-11-23IVGCVSW-6585 AddChannelShuffleLayer to PyArmNNTeresa Charlin
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: I2bfc54ea9aae78c60a66d7a5c39a33ca8a238e62
2021-11-23IVGCVSW-6584 AddConvolution3dLayer to PyArmNNTeresa Charlin
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: I6d09abb75db1875d4d4075b1801fdc46a0f4ae7b
2021-11-23IVGCVSW-6598 Add MirrorPad to PyArmNNTeresa Charlin
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: Ie54d2deff3059978a55667fe8a1d91418ef785dd
2021-11-23IVGCVSW-6588 AddCastLayer to PyArmNNTeresa Charlin
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: If9c6902396b9f3cec3b38b70ccfa12fcbb3fd5a7
2021-11-23IVGCVSW-6587 AddShapeLayer to PyArmNNRyan OShea
* Add layer to armnn.network.i * Add layer to test_network.py Signed-off-by: Ryan OShea <ryan.oshea3@arm.com> Change-Id: I7554a0ff62d81fcc99aa68204ae5f1cc3965c44b
2021-11-23IVGCVSW-6592 AddTransposeLayer to PyArmNNCathal Corbett
* AddTransposeLayer to PyArmNN armnn_network.i * AddTranposeDescriptor to PyArmNN armnn_descriptors.i * Add layer to test_network_method_exists() in test_network.py * Add descriptor unit tests to test_descriptors.py Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: Ic198448ad11d10701b6b263656285bb75d3656cd