aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
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
2020-07-15IVGCVSW-5080 Fixing OOB unit test failures in GatordMockTests.Colm Donelan
* Adding CHILD, EXECUTION_OF and PROCESS_ID to CheckTimelinePackets in GatorDMockEndToEnd. * Adding an index to avoid updating label offsets in CheckTimelinePackets. * Updating relationship size and label size in GatorDMockTimeLineActivation. Signed-off-by: Colm Donelan <Colm.Donelan@arm.com> Change-Id: Ia5096b899387a7d9770a81d35fc5672c7fba283b
2020-07-09IVGCVSW-5095 Make timeline report the Linux Thread ID not the pthread IDJim Flynn
Change-Id: Id69519fd9ef57716de4e389ed4156710a904c701 Signed-off-by: Jim Flynn <jim.flynn@arm.com>
2020-06-30IVGCVSW-4487 Remove boost::filesystemFrancis Murtagh
* Replace filesystem::path * Replace filesystem::exists * Replace filesystem::is_directory * Replace filesystem::directory_iterator * Replace filesystem::filesystem_error exception * Replace filesystem::temp_directory_path * Replace filesystem::unique path * Replace filesystem::ofstream with std::ofstream * Replace filesystem::remove * Replace filesystem::is_regular_file * Replace boost::optional with armnn::Optional in touched files * Remove some superfluous includes * Update build guides, GlobalConfig.cmake and CMakeLists.txt * Remove redundant armnnUtils::Filesystem::Remove function. * Remove redundant armnnUtils::Filesystem::GetFileSize function. Temporarily adding back Boost::filesystem to enable Boost::dll. Signed-off-by: Francis Murtagh <francis.murtagh@arm.com> Signed-off-by: Colm Donelan <Colm.Donelan@arm.com> Change-Id: Ifa46d4a0097d2612ddacd8e9736c0b36e365fb11
2020-06-26IVGCVSW-4910 Productise YoloV3 Big AppJan Eilers
* use cxxopts to process program arguments * remove hard coded paths for models * added options for preferred backends for each model Signed-off-by: Jan Eilers <jan.eilers@arm.com> Change-Id: I74a89577e15c4828e8b522bbf1f65f1895cdd657
2020-06-25IVGCVSW-4982 Fix failure in GatordMockTestsJan Eilers
Signed-off-by: Jan Eilers <jan.eilers@arm.com> Change-Id: Idb073a71d9b7f9ad5430fcb67e40b793635ed892
2020-06-03remove BOM from filesLaurent Carlier
Change-Id: Ia4b4bb3be0ed6e933c77d58f8e9879b1370e9537 Signed-off-by: Laurent Carlier <laurent.carlier@arm.com>
2020-06-02Fix a few build warnings:Rob Hughes
* Remove redundant asserts for unsigned ints being positive * Remove unneeded include of lightweight_test.hpp header * Remove unused exception variable names * Replace hardcoded 0.0f with T() for some template functions * Add a few static_casts Change-Id: I290b0433cf995f6d0199422eaa10f816e5fd8eb9 Signed-off-by: Robert Hughes <robert.hughes@arm.com>
2020-05-27Catch exceptions by const referencePavel Macenauer
Change-Id: I4b4d8ae419dfb8470e8937e75cd3bab85f03b935 Signed-off-by: Pavel Macenauer <pavel.macenauer@nxp.com>
2020-05-25Fix some musl libc issues in armnnFinn Williams
Signed-off-by: Finn Williams <Finn.Williams@arm.com> Change-Id: Ifb0295ee4516ca6cbd4364ade418b707fb39b354
2020-05-24IVGCVSW-4734 Add an Attribute label guid to the relationship message to ↵Finn Williams
reduce traffic Signed-off-by: Finn Williams <Finn.Williams@arm.com> Change-Id: Ia55c52c12fe3d30eb47bc42c932a33c620dc9197
2020-05-22Adding more performance metricsalered01
* Implemented CLTuning flow for ExecuteNetwork tests * Added --tuning-path to specify tuning file to use/create * Added --tuning-level to specify tuning level to use as well as enable extra tuning run to generate the tuning file * Fixed issue where TuningLevel was being parsed incorrectly * Added measurements for initialization, network parsing, network optimization, tuning, and shutdown * Added flag to control number of iterations inference is run for Signed-off-by: alered01 <Alex.Redshaw@arm.com> Change-Id: Ic739ff26e136e32aff9f0995217c1c3207008ca4
2020-05-13IVGCVSW-4825 Set default value for --file-format argument in ExecuteNetworkFinn Williams
Signed-off-by: Finn Williams <Finn.Williams@arm.com> Change-Id: I834ef1ec7c2c7b5ece1c6d1cf3cfe5d856cde349