aboutsummaryrefslogtreecommitdiff
path: root/python
AgeCommit message (Collapse)Author
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-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
2021-11-22IVGCVSW-6591 AddLogicalBinaryLayer to PyArmNNCathal Corbett
* AddLogicalBinaryLayer to PyArmNN armnn_network.i * LogicalBinaryDescriptor 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: I2f6288987332e1556235a9c16582e96b3a0fb641
2021-11-16Fixing error in pyarmnn generate_docs.pyNikhil Raj
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: Ic352c48dfe04c6cc5a2b201bf71950866be6b2fe
2021-11-16Update path to image file in pyarmnn generate_doc scriptNikhil Raj
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: Ifb5600771e49ac75d4d53bf281bcb87c7bdd99f9
2021-11-12Update the graph path in Readme and update project number in doxyfileNikhil Raj
* Move all the image files used in doxygen to docs/ * Have a single path for all images in Doxyfile * Update project number to 21.11 in Doxyfile Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: Ic9102d36b69a8261caf8e55da645463540e0b9f3
2021-11-12IVGCVSW-6347 Fix PyArmnn AddConstantLayerCathal Corbett
* Added new test for AddConstantLayer to FullyConnectedLayer with actual data in test_network.py * Added support for m_ConstantWeights in FullyConnectedDescriptor in file armnn_descriptors.i * Amended AddFullyConnectedLayer methods in armnn_netowrk.i to add support for ConstTensorsAsInputs to FullyConnected. * Fixed indentation in test_network.py Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: Id25c7ef6ed2cd3de3285416d90588ccb345aa9bc
2021-11-10Fix typo errors from ticket IVGCVSW-6420Cathal Corbett
* Typo errors from ticket 'Constant flag in tensor info is not set correctly'. Not fixed due to code freeze deadline. Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: Id80ba60647d1970115a8cf200f0d71e4fada9b30
2021-11-10Fix for pyarmnn py35 Unit TestsKevin May
* py35 unit tests require more-itertools 8.10.0 as latest version 8.11.0 breaks with py35 Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I21654fc73a3e3e9d00b14119eb840df750c81b12
2021-11-08IVGCVSW-6420: Constant flag in tensor info is not set correctlyCathal Corbett
!android-nn-driver:6532 !armnn-internal-tests:372451 * Made fix to 2 out of 3 ConstTensor() constructors in Tensor.hpp to throw InvalidArgumentException when TensorInfo isConstant parameter is false. * Added new ConstTensor() constructor in Tensor.cpp to accept vector<>.data() using template<typename MemoryType>. * Fixed runtime->GetOutputTensorInfo()/GetInputTensorInfo() methods and called submethods to return TensorInfo& rather than TensorInfo. * Fixed all failing unit tests for CpuRef/CpuAcc/GpuAcc to ensure any ConstTensor created has it's TensorInfo isConstant set to true. * Added unit tests in TensorTest.cpp to ensure ConstTensor constructors throw InvalidArgumentException when TensorInfo isConstat parameter is false. * Added unit test to ensure an empty ConstTensor constructor will set TensorInfo isConatant to true. * Indentation fixes. * Fix to arm_tensor.i to add isConstant parameter to TensorInfo constructor. Added methods IsConstant() and SetConstant(). * Fix to const_tensor.py to throw ValueError when TensorInfo isConstant is set to false when constructing a ConstTensor. * Fixed PyArmnn unit tests to set TensorInfo isConstant to True when ConstTensor is used. * Added unit tests in test_const_tensor.py to ensure ConstTensor constructors throw ValueError when TensorInfo isConstat parameter is false. Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: I44e440dd0422c366d31bbdbc77ad2b4db0bde148
2021-10-20MLECO-2488: added model optimization options and updated OptimizerOptions ↵alexander
constructor. Signed-off-by: alexander <alexander.efremov@arm.com> Change-Id: Ic2ad6a46c3830f2526ba8b20ca0db0780be4b9a2
2021-10-02IVGCVSW-5985 Remove deprecated codeJan Eilers
* Removes deprecated AddLayer, IsLayerSupported functions * Marks the whole LayerVisitor class as deprecated not just the constructor. This required to wrap all Accept functions in a no deprecate macro because the LayerVisitor is used as a parameter in there * Removes usage of deprecated LayerVisitor and replaces it with ExecuteStrategy. This required a few structural changes in the unit tests * Adds a default implementation for IStrategy called StrategyBase * Changes pyarmnn to use non deprecated constructor for INetworkProperties and adds related unit test * Marks usage of deprecated code in pyarmnn as deprecated. This required to extend INetworkProperties to allow backwards compatibility * Removes deprecated functions from CpuAcc, GpuAcc and Ref backends Note: This patch breaks compatibility with backends that are not updated in this patch !android-nn-driver:6325 Signed-off-by: Jan Eilers <jan.eilers@arm.com> Change-Id: Id13b6f37a74d26eadeda2da1dc92915e725ed5a5
2021-09-24IVGCVSW-3705 Add Channel Shuffle Front end and Ref ImplementationSimon Obute
* Add front end * Add reference workload * Add unit tests * Add Serializer and Deserializer * Update ArmNN Versioning Signed-off-by: Simon Obute <simon.obute@arm.com> Change-Id: I9ac1f953af3974382eac8e8d62d794d2344e8f47
2021-09-08MLECO-2207 Fix issue with the PyArmNN OD example, for FP32 models.Éanna Ó Catháin
Change-Id: I6b8887f0b3e23c0c1529719e20b17a9f55ccf4e7 Signed-off-by: Éanna Ó Catháin <eanna.ocathain@arm.com>
2021-08-12Github #562: Use standard linux multiple path delimiter for PyArmNN includesFrancis Murtagh
* Update Readme Change-Id: Iaf9e50d7c13cfd3fa1fd75fc423265288c0c7f32 Signed-off-by: Francis Murtagh <francis.murtagh@arm.com>
2021-06-16MLCE-510 Add CpuRef Shape Operator to ArmNNKeith Davis
* Add front end * Add reference workload * Serialization/Deserialization * Add unit tests * Update ArmNN Versioning Signed-off-by: Keith Davis <keith.davis@arm.com> Change-Id: I6fcb1fa341d6f08dea4003b13544e6e9f53fefd3
2021-06-01IVGCVSW-5833 Move the ProfilingGuid out of Types.hpp to its own header in ↵Nikhil Raj
profiling common !android-nn-driver:5691 Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: Ib71af0831e324ac6bd27b1a36f4a6ec1a703b14a
2021-04-29IVGCVSW-5744 Remove Tensorflow, Caffe and Quantizer from documentationKevin May
* Remove from .md files and Doxygen * Remove from armnn/docker build * Remove Tensorflow model format from ExecuteNetworkParams * Remove Tensorflow model format from ImageTensorGenerator Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: Id6ed4a7d90366c396e8e0395d0ce43a3bcddcee6
2021-04-27IVGCVSW-5721 Remove the Tensorflow Parser from ArmNNNikhil Raj
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: Ida37d3ee3a1af0c75aa905199bd861726c646846
2021-04-27IVGCVSW-5714 Add example wav file for Wav2Letter GuideKevin May
* The wav file is a recording of the phrase "the quick brown fox jumps over the lazy dog" * This has been approved with legal Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I8c3ba7d108623de94fb961e00f1dc34b78cd6452
2021-04-16IVGCVSW-5720 Remove the Caffe Parser from ArmNNNikhil Raj
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: Ib00be204f549efa9aa5971ecf65c2dec4a10b10f
2021-04-15Documenting that the python ASR example app only supports audio files with ↵Éanna Ó Catháin
16000Hz sampling rate. Change-Id: Ib36cf059fe1d187204f73352eb91bf7134757221 Signed-off-by: Éanna Ó Catháin <eanna.ocathain@arm.com>
2021-03-25IVGCVSW-5736 and IVGCVSW-5743 'NonConstWeights: Update front-end and ↵Sadik Armagan
TfLiteDelegate support for FullyConnected Operator' * Added front-end support for non-const weights for FULLY_CONNECTED operator * Added FULLY_CONNECTED end-to-end test * Updated FULLY_CONNECTED operator support in TfLite Arm NN Delegate for non-const weights * Updated the version numbers Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: Iffa5b9aa9297aca4c02d923cce4636c88ac21faa
2021-02-23MLECO-1253: update ASR example python appNina Drozd
* add link to new wav2letter model from ModelZoo in Readme * update model input size * update to match new model's output Signed-off-by: Nina Drozd <nina.drozd@arm.com> Change-Id: I8e85d025610a458e9ae7be93fd7179c71bac5b18
2021-02-15IVGCVSW-5694 Update Major, Minor release versionsNikhil Raj
* Update Arm NN version in Version.hpp and all guides * Change Project Version in Doxyfile Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: I05ab20a1ae5d0376a641df68a5877f97e7609052
2021-02-02IVGCVSW-5605 Doxygen: Add PyArmNN to Doxygen docuJan Eilers
Signed-off-by: Jan Eilers <jan.eilers@arm.com> Change-Id: I43082950c55375f62ecd30236d1c475e4ca89faf
2020-12-08Pyarmnn fix - parsers are optional extensionsNina Drozd
Signed-off-by: Nina Drozd <nina.drozd@arm.com> Change-Id: Ic999cb898933fa674f1cd3b4b85ab650154d587d
2020-11-27IVGCVSW-5499 Missing validation for zero strideTeresa Charlin
* Convolution * Depthwise Convolution Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: I61b356fbffb176e9a05e08d9b6867d082b6712c8
2020-11-24Removing labels and replacing with links to model+labelsJakub Sujak
Change-Id: Iec6c0b7cf55e0aa3ec1f0013f2da40e93b9bbcfc Signed-off-by: Jakub Sujak <jakub.sujak@arm.com>
2020-11-17MLECO-1253 Adding ASR sample application using the PyArmNN apiÉanna Ó Catháin
Change-Id: I450b23800ca316a5bfd4608c8559cf4f11271c21 Signed-off-by: Éanna Ó Catháin <eanna.ocathain@arm.com>
2020-11-13IVGCVSW-5346 Update Major, Minor release versionsTeresa Charlin
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: I10bae415c175f4f35f32829fc48473c2ca5fa1d8
2020-10-28Move PyArmNN unit test resources for IDeserializer to external storagePavel Macenauer
Change-Id: I582acd5a852143b17ca19aebaf54ccf5c7b5df87 Signed-off-by: Pavel Macenauer <pavel.macenauer@nxp.com>
2020-10-21Add IDeserializer support in pyarmnnwangg
Resources required for new unit tests are included for review. Signed-off-by: Guanqun Wang gemini910621@gmail.com Change-Id: Iead6cb5beaf824a6f467ad9da4aede5719ebe4ec
2020-10-16Bugfix: fix typo in Pyarmnn README example codeFrancis Murtagh
Signed-off-by: Francis Murtagh <francis.murtagh@arm.com> Change-Id: Ib2c219c976dd37e570681442e15e414cdb61b3f6
2020-10-12Bugfix: Correctly parse the armnn_includes by separating with spaceFrancis Murtagh
* Stops generate_wrap reading as -I/usr/local/include-I/usr/include * Allows generation using system headers Signed-off-by: Francis Murtagh <francis.murtagh@arm.com> Change-Id: I501c473b0f624f80ebccfade7b009a74bdcb2d0c
2020-10-02PyArmNN UpdatesÉanna Ó Catháin
* Updated setup.py to raise error on mandatory ext * Updated examples section of main readme * Added readme to img class * Moved img class to new subdir Change-Id: Iea5f6d87c97e571b8ca5636268231506538840c7 Signed-off-by: Éanna Ó Catháin <eanna.ocathain@arm.com> Signed-off-by: Jakub Sujak <jakub.sujak@arm.com>
2020-09-28IVGCVSW-5326 PyArmnn has hard dependencies on all parsers when using cmakeFrancis Murtagh
Signed-off-by: Francis Murtagh <francis.murtagh@arm.com> Change-Id: Ieffc1f3db548bc01ea0127a0d60659f0b0783ce3
2020-09-01MLECO-1226: update pyarmnn profiling helper utilityNina Drozd
* fix key error in get_profiling_data * make retrieval of inference measurements more generic Signed-off-by: Nina Drozd <nina.drozd@arm.com> Change-Id: I3fc147a6a93830b59e8b12f517be9f9c72370c09
2020-08-24MLECO-955: Added python object detection example for PyArmNNJakub Sujak
Change-Id: I1344c027f4cc70520b7846b34dfbc2abf399d10a Signed-off-by: Jakub Sujak <jakub.sujak@arm.com>