aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2021-02-17IVGCVSW-5581 ExecuteNetwork: Fix pass backends as comma separated listJan Eilers
* Allow passing multiple preferred backends as comma separated list e.g. "-c CpuAcc,CpuRef" or by repeating the option "-c CpuAcc -c CpuRef" Signed-off-by: Jan Eilers <jan.eilers@arm.com> Change-Id: I8e304d26c2890b99d5ec4c1af6c372458fa70051
2021-02-15IVGCVSW-5675 Implement Pimpl Idiom for IProfiler (lower priority)Francis Murtagh
Signed-off-by: Francis Murtagh <francis.murtagh@arm.com> Change-Id: If716f5f4e9b5433586b8a939d326830482da2f74
2021-02-15IVGCVSW-5686 Add GpuAcc MLGO tuning file configuration argumentFinn Williams
Signed-off-by: Finn Williams <Finn.Williams@arm.com> Change-Id: I3f320499c379162f9d1b00cc8816bd144cd7eee4
2021-02-12IVGCVSW-5685 Add CpuAcc specific configuration option numberOfThreadsMatthew Sloyan
* Added ability to set number of threads used in CpuAcc backend * Enabled number-of-threads option in ExecuteNetwork * Added TfLiteDelegate ModelOptions test * Added unsigned int type to BackendOptions.hpp Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: Ia576d4f45cbe5df3654bc730bb5ebd5181d82b5a
2021-02-08IVGCVSW-4873 Implement Pimpl Idiom for IRuntimeKevin May
Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I52448938735b2aa678c47e0f3061c87fa0c693b1
2021-01-29IVGCVSW-5484 Add Network loading time to InferenceModelMatthew Sloyan
* Added output log to capture time taken to load network into runtime. * This time is cut down when loading a cached network. Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: I043c177f17d01df35fbe0752ec5d77e350749164
2021-01-20MLCE-336 'TfLite parser and ExecuteNetwork issues'Sadik Armagan
* Report the error thrown Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: If5e5160f43c11a284b919d76b04d9c4d53e9c56c
2021-01-15IVGCVSW-5644 Add documentation for cache loaded networkMatthew Sloyan
* Added ModelOptions documentation to CLBackendModelContext * Improved options descriptions in ExecuteNetworkProgramOptions.cpp Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: I14f0c8bb4f299809b89f49c616b691e2f7956d5b
2021-01-12IVGCVSW-5484 Add CacheLoadedNetwork options to ExecuteNetworkMatthew Sloyan
* Enable ability to save/load ClContext in ExecuteNetwork. Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: I58c61a53f6713853eb06520cc372ed47baf7f8c4
2020-12-09Default comparisons-files option to empty vectorDerek Lamberti
Change-Id: Iecd8d9b333fa4456d081b4787c1a5b5d0b4a2b79 Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
2020-12-08IVGCVSW-5560 Fix TfLiteDelegate Reshape operator failureMatthew Sloyan
* Fixed issue when running certain models with 2D shape tensor. * Falls back to inbuilt options if encountered. * Fixed ExecuteNetwork so that error messages are logged if NULL. * Updated TfLiteDelegate docs to include Logical Operators. Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Signed-off-by: David Monahan <david.monahan@arm.com> Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com> Change-Id: I5dbaf30351f7fc86e6178a0caf46c152812088d3
2020-11-30IVGCVSW-5587 Remove Tensorflow requirement from Arm NN TfLite delegateFinn Williams
* Added support for building the delegate with an external armnn path * Replaced potentially troublesome package manager * Explicitly set the privacy levels of delegate libraries * Fixed some error handling in ExecuteNetwork Signed-off-by: Finn Williams <Finn.Williams@arm.com> Change-Id: I2a7abc099796012cbb043c5b319f81778c9f3b56
2020-11-20IVGCVSW-5559 Add int8_t to tflite delegate on ExecuteNetworkFinn Williams
Signed-off-by: Finn Williams <Finn.Williams@arm.com> Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I56afc73d48848bc40842692831c05316484757a4
2020-11-18IVGCVSW-5377 'Add ArmNN TfLite delegate to ExecuteNetwork'Sadik Armagan
* Assign correct input values for the model * Call the right Validate function for Mul and Sub operators * Return the correct data type for kTfLiteInt8 Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I6d23adf68d33d8be9a1fbf5d19dfe47939a6d3d6
2020-11-17IVGCVSW-5377 Add ArmNN TfLite delegate to ExecuteNetworkSadik Armagan
* Added package manger to turn internal calls to find_package into a no-op * Changed delegate cmake so it can now be built within armnn Change-Id: I2a7ecb9a3c1ca05474cd1dccd91498f6f6c0b32e Signed-off-by: Finn Williams <Finn.Williams@arm.com> Signed-off-by: Sadik Armagan <sadik.armagan@arm.com>
2020-11-17IVGCVSW-5465 ExecuteNetworkTestsDynamicBackends Bug FixKeith Davis
* When invalid backend specified an ARMNNLOG should be invoked to fail more gracefully Signed-off-by: Keith Davis <keith.davis@arm.com> Change-Id: Iec34fbc03dbeeb66836b0d5e1dd381d021a379b1
2020-11-11IVGCVSW-5507 ExecuteNetwork fixJan Eilers
* Allow multiple backends to be defined seperately like " --compute CpuAcc --compute CpuRef " Signed-off-by: Jan Eilers <jan.eilers@arm.com> Change-Id: Ic2a827f6e3463a7413c98a7eefacef8864c1e87b
2020-11-09IVGCVSW-5462 Link fmt staticallyJan Eilers
* Fmt didn't get installed properly. Each component of an interface library needs to be installed separately. * Changed fmt to be a static library Signed-off-by: Jan Eilers <jan.eilers@arm.com> Change-Id: Ic69bc9536ee01eed7b434b1ff53150581ba60e00
2020-10-30IVGCVSW-5265 Removing more Boost references from test executables.Colm Donelan
* Removed unused includes from InferenceModel.hpp. * Replaced use of boost multi-array with vectors in YoloInferenceTest. Signed-off-by: Colm Donelan <Colm.Donelan@arm.com> Change-Id: Ieadf3471ed170b09859187c83616c8e249f94543
2020-10-29IVGCVSW-5468 Rewrite QuantizationDataSet.cpp to avoid use of CsvReaderJames Ward
* Remove armnnUtils/CsvReader and usage * Remove armnn/CsvReaderTest and usage * Replace functionality in QuantizationDataSet.cpp Signed-off-by: James Ward <james.ward@arm.com> Change-Id: I7213904482afa93ae6d607aa5e69117c8c34ea81
2020-10-29IVGCVSW-5265 Remove boost from core ArmNN CMakeColm Donelan
* Remove all but Boost_UNIT_TEST_FRAMEWORK_LIBRARY from ArmNN Cmake files. * Remove references to boost::fpc from old test applications. Signed-off-by: Colm Donelan <Colm.Donelan@arm.com> Change-Id: Ibb1261dee4b971d1788d2805528aa800a8b883ce
2020-10-27Bugfix: Allow use of dynamic backendId in execute networkFrancis Murtagh
* Stops execute network rejecting backendId based on BackendRegistry * Dynamically loaded backends arent visible yet as runtime isn't initialized Change-Id: I87adfd137b2225ab07f8c3e996db9565caf276eb Signed-off-by: Francis Murtagh <francis.murtagh@arm.com>
2020-10-20IVGCVSW-5284 Refactor ExecuteNetworkJan Eilers
* Removed boost program options and replaced it with cxxopts * Unified adding, parsing and validation of program options into the struct ProgramOptions * Program options are now parsed directly into ExecuteNetworkParams which can be passed directly to MainImpl * Split NetworkExecutionUtils into header and source * Removed RunTest * Removed RunCsvTest * Removed RunClTuning * Moved MainImpl back to ExecuteNetwork.cpp * Added additional util functions The functionality of ExecuteNetwork remains the same. Only cl tuning runs need to be started separately and there is no short option for fp16-turbo-mode because -h is reserved in cxxopts to print help messages Signed-off-by: Jan Eilers <jan.eilers@arm.com> Change-Id: Ib9689375c81e1a184c17bb3ea66c3550430bbe09
2020-10-14IVGCVSW-5280 Switch tests/InferenceTest and derived tests over to cxxoptsJames Ward
* refactor AddCommandLineOptions() functions to allow checking of required options * add CxxoptsUtils.hpp file for convenience functions !referencetests:268500 Signed-off-by: James Ward <james.ward@arm.com> Change-Id: Ica954b210b2981b7cd10995f0d75fcb2a2f7b443
2020-10-13IVGCVSW-4489 Remove remaining occurrence of boost::formatMatthew Sloyan
* Replaced with fmt::format in Descriptors.cpp. * Removed remaining boost/format headers in ArmNN codebase. * Removed additional boost header in Network.cpp Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: Ib98b83bf4ec99ef98ce7a3635ec0dd478c3e43e1
2020-10-12IVGCVSW-5335 Documentation for fast_mathMike Kelly
* Changed documentation for fast_math to add warning about possibly reduction in precision. Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: If954471efc6aef702e8490585571815d9e19b3fc
2020-10-12Load dynamic backends for YoloV3Derek Lamberti
* Optional cmd option to dump optimized model to dot * Optional cmd option to specify dynamic backends path * input is now optional and must exist if given * comparison files now optional and must exist if given Change-Id: I1499c9eb715be3cacdba2c227e1a93dd997f355d Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
2020-10-12IVGCVSW-5287 Switch tests/MultipleNetworksCifar10 over to cxxoptsJames Ward
Signed-off-by: James Ward <james.ward@arm.com> Change-Id: Ia4ff69f2c8dd538ad7845053dc7a690f434c381c
2020-10-09IVGCVSW-5282 Switch tests/TfLiteMobilenetQuantized-Armnn over to cxxoptsMatthew Sloyan
* Required update to cxxopts v3.0 for unrecognised options to work. Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: If1803731474e42580d663c802a1f3ff240fadffe
2020-10-08IVGCVSW-5286 Switch tests/ModelAccuracyTool-Armnn over to cxxoptsMatthew Sloyan
* Fixed two code errors which were causing compiler issues. * Added support for multiple input and output tensors. Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: I298e4bf52a0b41349adab60295e0f22da3cc057b
2020-10-07IVGCVSW-5405 Remove boost::make_iterator_range and boost::to_upper_copyMatthew Sloyan
* Removed from ModelAccuracyTool-Armnn and ImageCSVFileGenerator * Fixed formatting in ImageCSVFileGenerator Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: I09dfca27813582cc48f46d0507680368ed823a9c
2020-10-02IVGCVSW-5334 Remove remaining boost::numeric_cast from armnnMatthew Sloyan
* Floating point casts now use armnn::numeric_cast. * Also removed remaining header imports. Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: I2d37847d67f164fc0a0ae17f34d49ff3d2210c30
2020-10-01IVGCVSW-5281 Switch tests/ImageCSVFileGenerator over to cxxoptsMatthew Sloyan
Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: I1b2ba4fcaebbafb70693b83b40b79db0071b4522
2020-10-01IVGCVSW-5285 Switch tests/ImageTensorGenerator over to cxxoptsMatthew Sloyan
Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: I9d43e347021634022a875fc4526baa438c467df0
2020-10-01IVGCVSW-5283 Switch tests/profiling/gatordmock over to cxxoptsMatthew Sloyan
Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: I4f06a414d6bd5f18c2ced882ac518052ed371cfc
2020-09-30IVGCVSW-4519 Remove Boost Variant and apply_visitor variantJames Ward
* replace boost::variant with mapbox::util::variant * replace boost::apply_visitor with mapbox::util::apply_visitor * replace boost::get with mapbox::util::get Signed-off-by: James Ward <james.ward@arm.com> Change-Id: I38460cabbcd5e56d4d61151bfe3dcb5681ce696e
2020-09-29IVGCVSW-5295 Change fmt to be a header-only interface libraryJan Eilers
* Fix non-virtual-dtor warnings in fmt * Fix wrong fmt include in TfParser * Make fmt work in nn-driver * Make fmt a header-only interface library * Link fmt where necessary Signed-off-by: Jan Eilers <jan.eilers@arm.com> Change-Id: I9db7cd9a133a81262cbf79f04fb419ab97b88ea8
2020-09-22IVGCVSW-5318 'Create a Neon/CL Workload Unit Test fast_math option enabled'Sadik Armagan
* Unit test implemented to make sure it returns WINOGRAD * Updated the enable-fast-math option in ExecuteNetwork to be consistent Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: Id64f114ae47966def69a9eef0770a4251ee56a41
2020-09-15IVGCVSW-5317 'Add enable_fast_math Option to ExecuteNetwork'Sadik Armagan
Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I4eb3e27837aea926593d49f9ccea07bab8388d5b
2020-09-11IVGCVSW-5299 Remove some boost::numeric_cast from armnn/testsMatthew Sloyan
* Replaced with armnn/utility/NumericCast.hpp * Removed combinations without float implementation in NumericCast.hpp Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: Ia4ec605f063cdb0071fff302ef48c610f9f9505e
2020-09-10IVGCVSW-5293 Remove boost::format from armnn/testsJames Ward
* Replaced boost::format with fmt::format Signed-off-by: James Ward <james.ward@arm.com> Change-Id: Icf5a6508e7be3d31bc063643491fc5e0607f21fa
2020-08-19IVGCVSW-5012 Add importEnabled option for OptimizerOptionsNarumol Prangnawarat
* Default importEnabled to false * Improve error messages Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com> Change-Id: I17f78986aa1d23e48b0844297a52029b1a9bbe3e
2020-08-18IVGCVSW-5159 Add Accuracy Check for YoloV3 Big AppRyan OShea
* Add Check Accuracy Method * Add Ability to pass in comparison file paths * Add compare_detection to yolo v3 class Signed-off-by: Ryan OShea <Ryan.OShea2@arm.com> Change-Id: I914ffe4805316263dc19d76a777fff6e35f44961
2020-08-17IVGCVSW-5114 Enable memory import in TfLiteYoloV3Big AppNarumol Prangnawarat
* Enable memory import in TfLiteYoloV3Big App * Add isMemoryManaged flag to Concat and Splitter layers Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com> Change-Id: I7e00f5da2a016c09d480b744fb17ea5611af8365
2020-08-14Fix linker err missing boost filesystem libraryJim Flynn
Change-Id: I6b09b80cfde86cb0f496aa95a47b13ae30d5d99b Signed-off-by: Jim Flynn <jim.flynn@arm.com>
2020-08-07IVGCVSW-5170 Do not resend timeline data if TimelineReporting is already enabledFinn Williams
Signed-off-by: Finn Williams <Finn.Williams@arm.com> Change-Id: I79f19dd1c1b66d199008c0010c33b5a55e0e89f2
2020-07-29IVGCVSW-5166 Pull out the common and server side code into standalone librariesJim Flynn
Change-Id: I180f84c493a9b2be4b93b25d312ebdd9e71b1735 Signed-off-by: Jim Flynn <jim.flynn@arm.com>
2020-07-29IVGCVSW-4980 Introduce InferAndValidate option to ExecuteNetwork for parsersSadik Armagan
* Introduced infer-output-shape option to TfLiteParser in ExecuteNetwork app !armnn:3591 Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I30bd5e51ac2b6759169e22a44586fd97986f2402
2020-07-28IVGCVSW-5079 Fix for Timeline decoder segfaults when given bad dataKevin May
* Check packet size/length in ReadSwTraceMessage * Update existing Unit tests * Add new Unit tests Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: Ie15be8bc289d7bcb354a259312aada5268bff4e4
2020-07-21IVGCVSW-5078 Fix segmentation fault on Yolo v3 big appNarumol Prangnawarat
Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com> Change-Id: I6ec9bbc22f26dcb55f7424da5bb1d21c66a7bf01