aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-01-31Make ETHOSN backend disabled by defaultKevin May
* Use ARMNN_ETHOS_ENABLE variable to enable it Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I5465b7738556604367262cf9aa8e1ce6e01639b9
2022-01-28IVGCVSW-6700 Enable import aligned host memory in android-nn-driverNarumol Prangnawarat
!armnn:7025 Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com> Change-Id: Iaa6112fb52d0f2942e6c52f90d96a8dc96000518
2022-01-25Cast Device and Driver in log message to unsigned longZingo Andersen
When building Android S this is during the build ending up as both unsigned long long and unsigned long, this makes the build break when building the tests. As both seem to be used during a normal build it will not help to just change the %ul to %ull as you get an error on that instead. This fixes so it's always printing with unsigned long. Signed-off-by: Zingo Andersen <zingo.andersen@arm.com> Change-Id: I1d1e4b8ab72c563a3b570f30112a7ce076f0a54e
2022-01-24IVGCVSW-6269 Add support of Unidirectional Sequence Lstm fp32/fp16 to AndroidCathal Corbett
* Unidirectional Sequence Lstm is supported in android-nn-driver. * CTS and VTS pass for Unidirectional Sequence Lstm if there are any without weights as inputs. If that isn't the case use the tests implemented in the android driver for LSTM. Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: Ie3a237b67f5101c4f9a2c7bea796e9c674bedba1
2021-12-14Make it possible to add libs from armnn backends during linking for testZingo Andersen
Change-Id: I95e6a3819ba99e41883f9d64a0bd6ce8706a7a4f Signed-off-by: Zingo Andersen <zingo.andersen@arm.com>
2021-11-09Fixed Driver Crash in DumpTensorMike Kelly
* When handling Tensors DumpTensor was automatically trying to turn them into ConstTensors but then threw an exceptions when IsConstant returned false Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: I8681bb3dd41cfe19c60fbd1cc9394c8b6cca551e
2021-11-08IVGCVSW-5636 'Implement NNAPI caching functions'Sadik Armagan
* Fixed test failures. !armnn:6617 Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I9989ece8999d67dd40dfcf69b73f4d80f71687a4
2021-11-04IVGCVSW-6420: Constant flag in tensor info is not set correctlyCathal Corbett
!armnn:6495 * Made fixes to 3 files ArmnnPreparedModel(_1_2/_1_3).cpp to set TensorInfo to constant in PrepareMemoryForInputs(). * Fixes made due to cts and vts failures in https://review.mlplatform.org/c/ml/armnn/+/6495 when a Tensor is passed to a ConstTensor without the TensorInfo isConstant parameter being set. Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: Iee179586652f365665a22f1e3409c1488c2d8bb3
2021-11-04IVGCVSW-5636 'Implement NNAPI caching functions'Sadik Armagan
* Cached serialized ArmNN model. !armnn:6384 Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I78120a7f8ea892a28c0ff25f1b54e67a4f912574
2021-11-04IVGCVSW-6430 Clear up coverity issuesMike Kelly
* Removed unreachable code * break after if else where both branches return * Removed unused operations * Result of dstPtr++ is unused * Fixed possible overflow * Axis dimensionSequence assignment can result in overflow where rank is not 4 * Removed use of old-style casts * Fixed spelling mistakes in error messages Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: If2a7ab63fc1d200cb18b494d99a67bbddb42f0f8
2021-11-03Make it possible to add libs from armnn backends during linkingZingo Andersen
Signed-off-by: Zingo Andersen <zingo.andersen@arm.com> Change-Id: I95e6a3819ba60e41885f9d64c0bd6ce8706a7b1e
2021-11-02IVGCVSW-6035 Update android-nn-driver NnapiSupport.txt for 21.11Teresa Charlin
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: Ic82d8ac6461e404f41e8888336e8d7514bef6433
2021-11-02IVGCVSW-6515 Restricting CpuRef LSTM tests to run only when CpuRef is enabledTeresa Charlin
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: Icabc39559efd9e621657eb48454fe52155e8c9ff
2021-10-22IVGCVSW-6440 Enable internal profiling of Optimizer in Arm NN DriverKevin May
Signed-off-by: Kevin May <kevmay01@e126674.cambridge.arm.com> Change-Id: I92334f3215160ccdd3eb974456a6400bced42065
2021-10-14IVGCVSW-6428 Remove assertsMike Kelly
* Changed asserts to check for errors and return appropriate values or throw exceptions * Changed unit tests to use Doctest's long macro names as the short macro names clashed with Android's Logging macros * Removed unused #includes * Clarified ambiguous #includes Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: Ice92a37590df727fd581d3be5ff2716665f26a13
2021-09-28IVGCVSW-5985 Remove deprecated codeJan Eilers
!armnn:6254 Signed-off-by: Jan Eilers <jan.eilers@arm.com> Change-Id: I728048874839cddedc8421233294d51d7f3e2415
2021-09-23IVGCVSW-3715 Add Channel Shuffle supportTeresa Charlin
!armnn:6211 Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: Ie5e5d160f6d826c30f1fff298a4a73151c1ccdbb
2021-09-03android-nn-driver getType returns the right devicePablo Tello
* ArmnnDriver queries the options and returns CPU or GPU depending on which is the first backend listed in the options * Resolves MLCE-401 Change-Id: If4e63e144507e817449f37926711fa325861b57d Signed-off-by: Pablo Tello <pablo.tello@arm.com>
2021-09-02IVGCVSW-6262 Add support for Reduce ProdTeresa Charlin
!armnn:6053 Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: I678be047c0919d98dbd22d22f4c1fd1ea80ea0b7
2021-08-11IVGCVSW-5919 Update android-nn-driver NnapiSupport.txt for 21.08Matthew Sloyan
Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: I2006f1d696d155742227eed940d7d97ed9385a66
2021-08-10BugFix: Fix skipping VTS tests.Matthew Sloyan
* Some tests on GpuAcc and CpuAcc P & Q were skipping because IsConstant flag wasn't set on TensorInfo passed to validation function. Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: Idd977bf621b71bb9625d8fc6620c29915de4b431
2021-07-27IVGCVSW-6158 ConstTensorsAsInput: FullyConnected - ToolsMatthew Sloyan
* Constant weights and biases are now stored as Constant layers. !armnn:5942 Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: I867a696eb684df2d0d5f7db8dd9c38933445f388
2021-07-23IVGCVSW-5354 Fix skipped VTS DynamicOutputShape ComparisonTeresa Charlin
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: I2c3f5f2a638bf99e379f91b9d1d1c99d491a0153
2021-07-19NNXSW-3081 Move Filesystem.hpp and Threads.hpp to public includeRob Hughes
!armnn:5954 Change-Id: Ic2904a0ccbcf24b30041a55d9c369c2424da1624 Signed-off-by: Rob Hughes <robert.hughes@arm.com>
2021-07-15IVGCVSW-5965: Remove the boost library from android-nn-driver build files.Sadik Armagan
* Remove all references to boost from the android-nn-driver build files: !armnn:5811 Signed-off-by: Colm Donelan <Colm.Donelan@arm.com> Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I7df7d815e658a52acf3e32305bc300dfaf9a1fe4
2021-07-12IVGCVSW-6062 update ArmnnPreparedModels to have a single static instance of ↵Finn Williams
the threadpool Signed-off-by: Finn Williams <Finn.Williams@arm.com> Change-Id: Ie350a11eab5d677dd6a5571ea4094aa51b23c501
2021-06-25IVGCVSW-6178 Add additional compiler warnings to the driverFinn Williams
Signed-off-by: Finn Williams <Finn.Williams@arm.com> Change-Id: I2209251736a095583fffc8da774188e0dccfc932
2021-06-25IVGCVSW-6178 Fix Wsign-compare error in android driverFinn Williams
Signed-off-by: Finn Williams <Finn.Williams@arm.com> Change-Id: I7cb21e18a7031b8cfe579046b33ad0491aa5c629
2021-06-23IVGCVSW-6062 Rework the async threadpoolFinn Williams
!armnn:5801 Signed-off-by: Finn Williams <Finn.Williams@arm.com> Change-Id: I9964d0899ce752441f380edddbd974010257b2dd
2021-06-17IVGCVSW-5943 Updates for latest AndroidKevin May
* Use the correct method to get memory size * Remove extra line that was a pre-existing typo Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I807fc6b5d6fe32b28975ae2a98a6179712c26a96
2021-06-16IVGCVSW-6088 Add Sin and Log to ElementWiseUnaryTeresa Charlin
!armnn:5755 Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: I82dc434ee9bfff452ec6c27527a5b3f91ebfe2ea
2021-06-16Add QUANT8_ASYMM_SIGNED in PadV2 for HAL1.3Teresa Charlin
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: I597344d91975d7067f137e6587b751500de33837
2021-06-12IVGCVSW-5826 Change weights layout for depthwise to [1,H,W,I*M]Jan Eilers
!armnn:5552 Signed-off-by: Jan Eilers <jan.eilers@arm.com> Change-Id: I5bbc998f1a29030f718d85b646907c5a314ceecf
2021-06-09IVGCVSW-4618 'Transition Units Test Suites'Sadik Armagan
* Used doctest in android-nn-driver unit tests. Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I9b5d4dfd77d53c7ebee7f8c43628a1d6ff74d1a3
2021-06-01Add armnn/profiling to test/Android.mkNikhil Raj
!armnn:5539 Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: I9616955fa9980f00ba3652da4323cadf392b9ef4
2021-05-31IVGCVSW-6081 Fix hal 1.0 async executionFinn Williams
Signed-off-by: Finn Williams <Finn.Williams@arm.com> Change-Id: I4037e3bb47ed0f5585663ca56eed2866bc8a9ef7
2021-05-26IVGCVSW-5781 Add Async Support to Android-NN-DriverFinn Williams
Signed-off-by: Finn Williams <Finn.Williams@arm.com> Change-Id: I1f13d04100fdb119495b9e3054425bf3babc59f1
2021-05-13IVGCVSW-6015 Fix uninitialised m_Optional field in ConstTensorPinJim Flynn
Change-Id: I4e3144cafad370866325cda668bfc389455f1d44 Signed-off-by: Jim Flynn <jim.flynn@arm.com>
2021-05-12IVGCVSW-5839 'HAL 1.3 Test Failure'Sadik Armagan
Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I90aab58be45c621701eb55fa3f3fd94c68883acb
2021-05-11IVGCVSW-5903 Update android-nn-driver NnapiSupport.txt for 21.05Nikhil Raj
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: I653a6ca0e88053c77adb9b7effb7a28ec1f12375
2021-05-05IVGCVSW-5410 Move ILayerSupport.hpp to backends folderFrancis Murtagh
Signed-off-by: Francis Murtagh <francis.murtagh@arm.com> Change-Id: I59359d4ffaf55963442ebb0231e1ee4a77616c28
2021-05-05Update boostorg URL to download boostNikhil Raj
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: I4eaab3e4cc83b817afa6fe7521710c9fab0fd8a4
2021-05-04IVGCVSW-5940 Enabling NN Driver dumps results in a driver segfaultMike Kelly
* Added checks to DumpTensor to handle situations where a shape has no dimensions or some unspecified dimensions Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: If9022a278d138ece12c7e347c61722bf5a2faf3b
2021-05-04IVGCVSW-5880 Update Integrator guideNikhil Raj
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: Id23a34674f2513373652586ec353f6352f0da871
2021-04-26IVGCVSW-5416 'Add android-nn-driver support for CAST'Sadik Armagan
!armnn:5494 Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: Ie99d58f7421c2634c23d2a68d1acaaac651963a4
2021-04-19IVGCVSW-5826 Remove cross-wireing in depthwiseJan Eilers
* The permutation of the tensor info is now completely handled in the armnnUtils::Permuted function. That includes quantization informations too !armnn:5411 Signed-off-by: Jan Eilers <jan.eilers@arm.com> Change-Id: I40410141303d950be7888f9e491133251b6f69d8
2021-04-12IVGCVSW-5763 Remove datalayout from dumps, as it is not known.Teresa Charlin
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: Ia2bdae7a38252414d295d10a0a2cbb9ae7b083d4
2021-04-02IVGCVSW-5355 Skipped VTS DynamicOutputShape Expand Dims should be passingNikhil Raj
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: If6ed4e513cc0e8ee29fb76127d66893f8b98e30b
2021-03-30IVGCVSW-5766 Avoiding driver abort when Cts tests use invalid filter shape.Colm Donelan
* A number of DepthwiseConv2d Cts tests pass a filter operand with a dimension[0] value greater than 1 in contravention of Android documentation. Adding a check to handle this gracefully. * Changing a hard assert in ConversionUtils::ConstTensorPin to a warning. Signed-off-by: Colm Donelan <Colm.Donelan@arm.com> Change-Id: I605340d098b717d1d88d259a0ed89a801287764d
2021-03-18IVGCVSW-5742 'NonConstWeights: Update FullyConnected in android-nn-driver'Sadik Armagan
* Enabled weights and bias as inputs in FULLY_CONNECTED operator. !armnn:5180 Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: Id325a8bf5be5a772191d27ae89485e992f0c48fa