aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-02-08Review and update documentation for supported operatorsHEADv24.02mainbranches/android-nn-driver_24_02Kevin May
* IVGCVSW-7967 Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I3f5f5ab7d9d035e069feab971a7885ed9662446c
2023-09-26IVGCVSW-6294 Added Split support to Android-NN-Driverv23.11branches/android-nn-driver_23_11Mike Kelly
* Added Split support to Android-NN-Driver Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: I4b0bc146597dae89b68402aa78d1f1b1c894a7fb
2023-08-22IVGCVSW-7957 Fix weights checking when converting Conv2d/DepthwiseConv2dKevin May
* An Operand can only have NO_VALUE if it is an optional argument of an operation * Add a check to see if the operand is optional to IsWeightsValid Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I6321934dbfa41dd2bd28d8871c135f3694d9674d
2023-08-11Fixed issue where schema wasn't being updatedMike Kelly
* Schema will always be updated whenever setup.sh is run Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: Id30c9b21ee0c76a039cec7fea91e1fc8a66b02ed
2023-08-09MLCE-1093 Reshape and concat invalid resultsMike Kelly
!armnn:10062 * Added Split Axis to GroupedConv2d splitter. Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: I922a2b8713ec7ec29db7c5903ef0008d5d21a9cf
2023-08-02Updating usage of HasCapability to use HasMatchingCapability.v23.08branches/android-nn-driver_23_08Colm Donelan
!armnn:10034 Signed-off-by: Colm Donelan <colm.donelan@arm.com> Change-Id: I2a0e7effe1db65545c186e0dd0a0969c9c8efe9c
2023-08-01IVGCVSW-7900 Added parameter checks to executeFencedMike Kelly
* Added parameter checks to ensure that the native_handles will work with this function. Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: I0f07de04b24f930d8025461178ba4cdb470eb5b4
2023-08-01IVGCVSW-7899 Cannot handle tensors with more than 5 dimensionsMike Kelly
* Fixed issue where then dimensions specificity didn't match the number of dimensions. Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: I72c116377276c8b7a4cd0db7f91eb911e697d420
2023-08-01IVGCVSW-7701 Add TILE to NnapiSupport.txtNikhil Raj
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: Ie07fa13ad990529e5aa0c303d22f576446cbae2b
2023-07-31IVGCVSW-7787 Fix READ memory access caused by missing printf argumentsKevin May
Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: Ibea856e1420ad3ff14aef2cdb3d8ee918fb1bcf1
2023-07-31IVGCVSW-7825 Resolving CTS failures with Android Q and Hal 1.2.Colm Donelan
* The POW operator causes 23 CTS failures on the combination of Android Q and Hal 1.2. The problem does not manifest on later version of Android or other version of the Hal. Signed-off-by: Colm Donelan <colm.donelan@arm.com> Change-Id: Ib89417b35dc51c8fcb273f63663875ef41ab3dde
2023-07-25IVGCVSW-7888 Add Tile convert functionTeresa Charlin
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: Ic9479be6b3e6cf0e529c685c9b28c642e9dd00d5
2023-07-19IVGCVSW-7760 Add support for Android 14Kevin May
* Replace code duplication with filter Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I8ac5773c7a6622cbab2dbf12f25886c81b485255
2023-05-18IVGCVSW-7400 Add support for PowTeresa Charlin
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: Ida6d93d203d2430befbbd2deaa02108078de73f8
2023-05-09MLCE-1035 Add documentation around NNAPI Capabilitiesv23.05branches/android-nn-driver_23_05Mike Kelly
* Added section that briefly describes the NNAPI Capabilities and links to the Android documentation. * Provides a description of how the Android-NN-Driver obtains its Capability values as it initialises. * Provides a list of the System Properties that the driver will look for for each HAL version. Change-Id: I888156ffd75fbfeaf9865c77c0ae46d71e4865e5
2023-04-14Update cxxopts from 3.0 to 3.1.1Jim Flynn
!armnn:9430 Signed-off-by: Jim Flynn <jim.flynn@arm.com> Change-Id: Ib0dd3df4697ad5adcf48d790e74bb7eef10dbf9c
2023-04-07IVGCVSW-7197 Android NN driver Opaque delegate changesJohn Mcloughlin
!armnn:9369 Signed-off-by: John Mcloughlin <john.mcloughlin@arm.com> Change-Id: Ia31ef139ea78da92e324fb9428ad3cbbdb220047
2023-03-14IVGCVSW-3809 Refactor Elementwise Binary ops to use ElementwiseBinaryLayerTeresa Charlin
!armnn:9319 * Refactored all functions to convert Add, Div, Maximum, Minimum, Mul and Sub to use ElementwiseBinary layers instead. Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: Ic05885cd8692e7f1b7032862fb4a395af70e0bcd Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: If9717d6ab236d97c76f6cd39b96bde86c81e4382
2023-03-08IVGCVSW-7404 Out of bounds detectionMike Kelly
* Added test to ensure that all inputs and outputs do not go out of bounds. Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: Ia97e85f71e46cd2203306243e4dcbc23e0f29ec1
2023-03-02IVGCVSW-7420 Prevent CpuAcc & GpuAcc from running during android-nn-driver ↵Cathal Corbett
aync execution !armnn:8866 Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: I3289618d4adfbac955cf883a7f61e50f9f454b31
2022-12-21IVGCVSW-7211 Fix float16 operators being wrongly unsupported with ↵Cathal Corbett
android-nn-driver. !armnn:8862 * Added float16 mean test cases. * Float16 CTS/CTS pass on CpuAcc. Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: Ibd9021d0ae4a205cc2c91555f3ae00c6dba84609
2022-12-13Optimize the calling of IsLayerSupported().Cathal Corbett
!armnn:8742 * 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 optimization 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. Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: Ie5c6c9cd10d81f90b1ee78dd6e3442f353b6c109
2022-12-05Bug fix gather for negative axisTeresa Charlin
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: I556be062b6c16bb8c42fe4e219af85ad88015f41
2022-11-10Update Integrator guide and FAQsv22.11branches/android-nn-driver_22_11Nikhil Raj
* Add steps to build Android T in IntegratorGuide Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: Id2f4c33c50c10c31b2c9d3c76875ffaf780a6bad
2022-10-25IVGCVSW--7126 Update setup.sh to use Flat Buffers v2.0.6Colm Donelan
Signed-off-by: Colm Donelan <colm.donelan@arm.com> Change-Id: Ie218ba025f83ef7163eb8b548a89625a271c8a4c
2022-09-06IVGCVSW-7006 Remove deprecated code due to be removed in 22.08Teresa Charlin
* AddConv with weights and bias !armnn:8167 Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: I9b2ad21482d503161721b7d4eee5c5d16b59a379
2022-08-05IVGCVSW-7091 Add LICENSE.spdx autogenerated by reuseJim Flynn
Signed-off-by: Jim Flynn <jim.flynn@arm.com> Change-Id: Ia1f7a30c5d2fa3436430cbfae693b80ec240e723
2022-08-05IVGCVSW-7090 Add licensing info to awkward filesJim Flynn
Signed-off-by: Jim Flynn <jim.flynn@arm.com> Change-Id: I908aa5c7581b7bb1eebeb8e32625c9b64a9ff7e9
2022-07-06IVGCVSW-6899 Add basic Android 13 support to Android.mkKevin May
* Android 13 does not differ significantly form 12 so there is no need to add a new Android variable for 13 Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I4880bd93fea9bdfff6d1e18660ea637b7b6d2ace
2022-06-27Add Mapfiles generation to Android.mkRyan OShea
* Adds map file to libArmnnDriver for each Hal version * Adds map file to neuralNetwork driver for each hal version Signed-off-by: Ryan OShea <ryan.oshea3@arm.com> Change-Id: I644d0aefbd55edf8ad2d63d0166e9cbb9d768a42
2022-06-01IVGCVSW-6983 Fix for failing Android P buildMike Kelly
* Removed ability to use AOSP version of flatbuffers * The version of Flatbuffers shipped with Android P is V1.8.0 but ACL and ArmNN need V1.12.0 or later. Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: I791855ba474c02c119c3353c5195a3ba6d48c3b5
2022-05-26GitHub #644 fails to build with flatbuffers 2.0.6Mike Kelly
* Fixed bug where flatbuffers was downloaded every time setup.sh was run. * setup.sh will attempt to use the version of flatbuffers used by android if one is available. * setup.sh will now generate ArmnnSchema_generated.h where one does not exist !armnn:7625 Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: I62f3be6ebfc7fbef39597295dca194d70294646c
2022-05-25IVGCVSW-696 Coverity: Variable declared without initializingCathal Corbett
Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: Ibf9bfa28099b476862ff6ac87e10ff28db8ff3ad
2022-05-16IVGCVSW-6124 ConstTensorsAsInput: Convolution2dKeith Davis
* Add support for Android-nn-driver !armnn:7382 Signed-off-by: Keith Davis <keith.davis@arm.com> Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I7ace53cf1c8954c1f2d5588387616d7179ef3bf7
2022-05-09IVGCVSW-6127 Fixing seg fault in LayerInputHandleColm Donelan
* Fixing a segmentation fault when SanitizeQuantizationScale is called on a LayerInputHandle whose m_OutputSlot is nullptr. Signed-off-by: Colm Donelan <colm.donelan@arm.com> Change-Id: I447c405086ff327a28a72938fbf82844d715a17d
2022-05-05IVGCVSW-6127 ConstTensorsAsInput: DepthwiseConvolution2dCathal Corbett
!armnn:7417 Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: Ic37d6b8677e040c60a90358dd0a4a8eb33fb6ea0
2022-05-04IVGCVSW-6806 Fixed issue with missing TensorInfos in UnidirectionalSequenceLSTMMike Kelly
* Corrected TensorInfo order for IsUnidirectionalSequenceLstmSupported * outputStateOut TensorInfo is not optional. * cellStateOut TensorInfo is not optional. * TensorInfo Order matches other QLSTM/LSTM layers. !armnn:7455 Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: I5b0e0fa4b6e1c3da6689d9aefc9b959172c2e7d4
2022-04-29IVGCVSW-6838 Disable Import/Export by default in the Android-NN-DriverDavid Monahan
Signed-off-by: David Monahan <David.Monahan@arm.com> Change-Id: If873ed691e1878e8b0c1dc52717b4418a178c72f
2022-03-31IVGCVSW-6732 Tests surrounded in '#if defined(ARMNNREF_ENABLED)' in ↵Cathal Corbett
android-nn-driver do not execute. * Change to ConvertionUtils.hpp fix ConcatTests_GpuAcc tests. !armnn:7300 Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: I1543b57c6d1f9660916ca530b421c87e54b13f72
2022-03-23IVGCVSW-6706 Update header includes for new client profiling libJim Flynn
!armnn:7327 Change-Id: If4efc2195eb8713e98767fd4732ae9f4f2bfe09b Signed-off-by: Jim Flynn <jim.flynn@arm.com>
2022-03-16IVGCVSW-6801 Add some timing information to ExecuteGraph.Colm Donelan
* Modify all versions of ExecuteGraph to include timing information. This can give a rough guide as to how much overhead the driver is adding. Signed-off-by: Colm Donelan <colm.donelan@arm.com> Change-Id: Ie168e060c22b8417efa2ede0c9bdc7ef2631b913
2022-03-08IVGCVSW-6649 Add Timepoints to Android NN DriverRyan OShea
* Added timepoints to ArmnnDriverImpl across all versions * Added ALOGV message to display time taken for prepareModel function * Added ALOGV message to display time taken for prepareModelFromCache function Signed-off-by: Ryan OShea <ryan.oshea3@arm.com> Change-Id: I07f341099e81a0da45db0e8f575ba3c26631e024
2022-02-28IVGCVSW-6704 Change the namespace from armnn::profiling to arm::pipe in ↵Cathal Corbett
android-nn-driver !armnn:7222 Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: Ie7e3802a1a4a43abbb924a86d6608b77d19f327c
2022-02-21IVGCVSW-6700 Enable Import by defaultDavid Monahan
!armnn:7173 Signed-off-by: David Monahan <David.Monahan@arm.com> Change-Id: I642734b414a785f831e1a825790a78ee5078950f
2022-02-16Revert "Revert "IVGCVSW-6700 Enable import aligned host memory in ↵Narumol Prangnawarat
android-nn-driver"" This reverts commit 8069603dc44b7673b356f66517cd8b25af8080f0. * Reason for revert: Try reenable import aligned host memory in android-nn-driver * Added a check to ArmNNDriverImpl.cpp to not call ExecuteWithDummyInputs with GpuAcc * Added new android-nn-driver driver options to enable / disable Import and Export * Import is disabled by default for now due to conv2d issues * Export is enabled by default !armnn:7147 Change-Id: I91110c58ebb3931d1c458e3774944e55c1250dd8 Signed-off-by: David Monahan <David.Monahan@arm.com>
2022-02-16Document updatesNikhil Raj
* Added a note in the Integrator guide for the new error while building android * Removed boost from FAQs Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: I1dc08bf2ff772550ac4e766bdf791301ea11cd5c
2022-02-15IVGCVSW-6783 Re-ordering DumpJsonProfilingIfRequired in ArmnnPreparedModelColm Donelan
* In the destructor of ArmnnPreparedModel, DumpJsonProfilingIfRequired was being called with a potentially null profiler. Signed-off-by: Colm Donelan <colm.donelan@arm.com> Change-Id: Id0d3a2403878fedc4e05dc498edb48d574232c71
2022-02-10IVGCVSW-6388 Update android-nn-driver NnapiSupport.txt for 22.02Nikhil Raj
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: I8fbfa37b2ccd7066dc2dda6d595fe33eca79618b
2022-02-03Add Android S info to Integrator guideNikhil Raj
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: I4be1bda78c4343f8ccbb8df331538cb4f5d763a6
2022-02-02Revert "IVGCVSW-6700 Enable import aligned host memory in android-nn-driver"David Monahan
This reverts commit 8509422e1e7d629f88d6a5e4e4bded8a682f435b. Reason for revert: Reverting as this might be the cause of several segfaults on CI Change-Id: I902b4ddaec23dc46a2459f8512ec458e1aa722f3