aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
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-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-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-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-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-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-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-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-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-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-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
2021-02-16IVGCVSW-4873 Implement Pimpl Idiom for INetwork and IOptimizedNetworkFrancis Murtagh
Signed-off-by: Francis Murtagh <francis.murtagh@arm.com> Change-Id: I32dc7654b13384e95684073c2fc51cd147085367 !armnn:5012 Change-Id: I32dc7654b13384e95684073c2fc51cd147085367
2021-02-15IVGCVSW-5665 Basic NN Driver support for next OS VersionSadik Armagan
Signed-off-by: Kevin May <kevin.may@arm.com> Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I1e1db52322092c6b1b7ac6183c3adc90aabcec24
2021-01-11IVGCVSW-5485 'Add CacheLoadedNetwork options to Android NN Driver'Sadik Armagan
* Added Flatbuffers dependency to android-nn-driver * Added CacheLoadedNetwork options to android-nn-driver Options will be android.hardware.neuralnetworks@1.3-service-armnn -v -c GpuAcc -n arm-armnn -s -q <file_path> & Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I2cdf0b84062cb1c6ad4346cd64b00161cfe85920
2020-10-30IVGCVSW-5267 Remove use of boost::array from unit tests.Colm Donelan
* Boost::array is used in a small number of nn driver unittests. It can be directly replaced by std::array in C++ 11. Signed-off-by: Colm Donelan <Colm.Donelan@arm.com> Change-Id: I4c6f4489b7cab8e60c6b76172c3027f953d63e3c
2020-10-29IVGCVSW-5267 Remove boost from core android-nn-driverJames Ward
* WIP !armnn:4231 !armnn:4287 Signed-off-by: James Ward <james.ward@arm.com> Change-Id: I7844efc84fac018d8aad1f72dd236ede3fd8e7f2
2020-10-07IVGCVSW-5298 Remove boost::format from Android-nn-driverColm Donelan
* Replaced with stringstream, string or filesystem::path Signed-off-by: Colm Donelan <Colm.Donelan@arm.com> Signed-off-by: Jan Eilers <jan.eilers@arm.com> Change-Id: I2aa80d88cc0eaff5de4dc6a121370ebf41dcb0a8
2020-09-03IVGCVSW-5274 'Update ConvertQuantizedLstm function to use ShapeInferenceMethod'Sadik Armagan
* Enabled Dynamic Tensors in QUANTIZED_LSTM operator. !android-nn-driver:3897 Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I415014d19729aac255479099e372e5ff1a6dd3e2
2020-08-31IVGCVSW-4917 Adding Unit test to Android-nn-driver for Hal1.3 QosDavid Monahan
Signed-off-by: David Monahan <david.monahan@arm.com> Change-Id: Ie45464f2b04c8f2bb30ca06ff91b96492f2466b0
2020-06-02IVGCVSW-4850 Create QLSTM unit test in android-nn-driverSadik Armagan
* Fixed small compile issue. Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: Id3dbb2daf633532ad29e8cc2cb3d112437c2f649
2020-05-26IVGCVSW-4850 Create QLSTM unit test in android-nn-driverSadik Armagan
* Added QLSTM unit tests Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: Ibb7587d8a4fae4a630e7e80f4c3ce830665a7c77
2020-05-19IVGCVSW-IVGCVSW-4772 Fixes for android-nn-driver unit tests on Android RDavid Monahan
* Added missing operand parameter numberOfConsumers to DriverTestHelpers * Added nullptr checks to unit tests * Disabling QuantizedLstmTest when ARMCOMPUTECL_ENABLED is undefined Signed-off-by: David Monahan <david.monahan@arm.com> Change-Id: I46dc413d3bb1805eb0e7c982177b6d60d0b297f5
2020-04-27IVGCVSW-4692 HAL 1.3 VTS/NNT, Unit test FailuresSadik Armagan
* Check if the model is prepared. Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: Ia6ea7c5b61a1da97acddddfc5431925cbb4f0227
2020-04-23IVGCVSW-4677 Fix FencedComputeTest Hal 1.3Sadik Armagan
* Implemented executeFenced() function in HAL 1.3 Driver Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I11f8f532e9688d4e194992b46dbed575a19be3c5
2020-04-07IVGCVSW-4485 Remove Boost assertNarumol Prangnawarat
Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com> Change-Id: If602024a339df7548333e470545f9400c3daf7b3
2020-04-03Add flow to exclude libOpenCL when building AndroidnNNalered01
When building AndroidNN for a commercial silicon device, there's no need to include libOpenCL as we should be able to use the one already on the device Change-Id: I5ef5776010399dd2d2d48958465daf4b71e4f825 Signed-off-by: alered01 <Alex.Redshaw@arm.com>
2020-03-26IVGCVSW-4447 Add Hal 1_3 SupportKevin May
* Add new 1.3 files HalPolicy, ArmnnDriver, ArmnnDriverImpl * Add new .rc file for 1.3 service * Add ArmnnPreparedModel_1_3 and implement new functions * Update Android.mk with 1.3 driver and service * Refactor ifdef to include ARMNN_ANDROID_NN_V1_3 * Create Utils getMainModel for new 1.3 Model Main Subgraph * Use android Utils to convertToV1_X in ArmnnPrepapredModel_1_3 * Refactor HAL 1.2 convert functions into ConversionUtils_1_2.hpp * Replace ArmnnBurstExecutorWithCache with call to ExecutionBurstServer Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I514069e9e1b16bcd1c4abfb5d563d25ac22d02e3
2020-03-11IVGCVSW-4482 Remove boost::ignore_unusedJan Eilers
* replaced boost::ignore_unused with armnn::IgnoreUnused Signed-off-by: Jan Eilers <jan.eilers@arm.com> Change-Id: I4443a3620ed7d51b151af67c070d4225e410b5fa
2020-03-03IVGCVSW-4473 Android R pre Hal 1_3 build changesKevin May
* Update ErrorStatus to V1_0::ErrorStatus * Update Request to V1_0::Request * Update OperandType to V1_2::OperandType * Add namespace android::nn::hal in ArmnnDriverImpl for R only * Add missing g_RelaxedFloat32toFloat16PerformancePowerUsageName * Add namespace V1_0 or V1_1 where necessary * Update Android.mk with R macro and android.hardware.neuralnetworks@1.3 * Remove androidnn.go * include IAllocator in DriverTestHelpers * Remove unused LOCAL_CFLAGS Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I1787f1ed6784b3bbec017536d87d49197405e853 Signed-off-by: Kevin May <kevin.may@arm.com>
2020-02-11Partial Revert "IVGCVSW-4130 Remove clframework from android-nn-driver build."Mike Kelly
* Partial reversion to restore Android.mk files. * Changed armnn-arm_compute library name to arm_compute_library. !armnn:2714 This reverts commit 826dd41dc4de616059a61fb0aaec432311372c6c. Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: Idb4a2eeb6cbb19a249c1a85eec2cf597d6b6d970
2020-01-31IVGCVSW-4130 Remove clframework from android-nn-driver build.Colm Donelan
Signed-off-by: Colm Donelan <colm.donelan@arm.com> Change-Id: I019bdab899de19c1a2cb6bbd72dd38ceb677d98b
2020-01-24IVGCVSW-4270 Change .dot file name to start with netIdJim Flynn
* .dot file will start with the same number as the associated input and output tensor dump files Change-Id: Ic64539854c2b8c34a7034fa18a142b2dfe67df7d Signed-off-by: Jim Flynn <jim.flynn@arm.com> IVGCVSW-4271 Add getSupportedOperations marker file * Also fix segfault in previous graph dump code Change-Id: I01915f47ae17d89ad3595430d073a17b1a1fda58 Signed-off-by: Jim Flynn <jim.flynn@arm.com>
2020-01-24IVGCVSW-4260 Fix Transpose CpuRef VTS failuresJames Conroy
* Adds missing conversion for permutation vector from ANN/TF/Numpy format to ArmNN format. * Corrects legacy tests based on incorrect permutation vectors. Signed-off-by: James Conroy <james.conroy@arm.com> Change-Id: I767142378055e484d22f3ffba34580c528370cfe
2019-11-15IVGCVSW-4115 Fix for armnn-driver-tests Capabilities failureKevin May
* Add TensorQuant8SymmPerChannel to ArmnnDriverImpl::getCapabilities_1_2 * Add TensorQuant8Symm and TensorQuant8SymmPerChannel to Capabilities supported operands tests Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: Ifbc742c5562f243172d2f4e6a2f6a8f3b6a405ea
2019-11-08IVGCVSW-4069 Add ProfilingGuid to Networkjaneil01
!armnn:2232 Signed-off-by: janeil01 <jan.eilers@arm.com> Change-Id: Ib24989dba72a9f9acd1c8017c1f39c3ee74030ea
2019-10-18Github #275 Improved getting ArmNN's version at compile timeMatteo Martincigh
* The version macro is set in the Version.hpp just like before, so parsing it from file is no longer necessary !armnn:2090 Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com> Change-Id: I3f8d10bd7b8947f9361e50edf033ea4e93451faf
2019-10-17Move version definition to its own fileMatteo Martincigh
* Move the ArmNN version to a separate ArmnnVersion.txt file * Updated makefiles accordingly !referencetests:206978 !armnn:2089 Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com> Change-Id: I02b838bc71611a866b3f96335e44a33b0167134f
2019-10-02IVGCVSW-3737 Add support for converting DEPTH_TO_SPACEAron Virginas-Tar
* Added ConvertDepthToSpace() to hal_1_0::HalPolicy and hal_1_2::HalPolicy * Implemented ConvertDepthToSpace() template inside ConversionUtils.hpp * Changed unsupported operation from DEPTH_TO_SPACE to HASHTABLE_LOOKUP in GenericLayerTests/GetSupportedOperations Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: I12bf73ea721e7b6d49cc4a76000b43a3f274c6f5
2019-08-22IVGCVSW-3613 Add Quantized LSTM test to Android NN DriverEllen Norris-Thompson
Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com> Change-Id: Ie3c535789186571df9000d75ad2a62ac8c94dcb4
2019-08-22IVGCVSW-3613 Refactoring Android NN driver for QuantisedLstm testEllen Norris-Thompson
* Templated AddPoolAndGetData and AddPoolAndSetData to accept different types * Moved scale and offset to arguments of Add*Operand functions Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com> Change-Id: Iaf4c2d5f4183ea54799bedae20950b23b914a727
2019-08-07IVGCVSW-3595 Implement the LoadDynamicBackends function in the Runtime classMatteo Martincigh
* Updated the makefiles to include boost::filesystem !armnn:1702 Change-Id: Ibe0a696d9fd473b552602266a89465289e9dc043 Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
2019-07-29IVGCVSW-3398 Add LSTM normalization parameters to HAL 1.2Ferran Balaguer
* Adding LSTM processing function in HAL 1.2 with normalization parameters * Refactoring LSTM tests !armnn:1608 Signed-off-by: Ferran Balaguer <ferran.balaguer@arm.com> Change-Id: I0e00f14ef078a333e9f2f23d6278a5d92a3001d6
2019-07-25IVGCVSW-3538 Fix Android driver getCapabilities_1_2() testFerran Balaguer
Signed-off-by: Ferran Balaguer <ferran.balaguer@arm.com> Change-Id: Idca10ca2d55ae8d5ff95af8bdbbee5492d4a6af3
2019-07-01IVGCVSW-3282 Update getCapabilities_1_2Ferran Balaguer
Signed-off-by: Ferran Balaguer <ferran.balaguer@arm.com> Change-Id: I65ae8669d8365bf372fbf0d1eceb48cbe06ef92a
2019-06-26IVGCVSW-3310 Update scripts to download q-fsk versionSadik Armagan
* Updated test/Android.mk file to be consistent with Android.mk * Updated version number in androidnn.go to match with q-fsk Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I847f073d92457d59735b8f9ab14c7404cf5f9515