summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-11-06MLECO-4457: Update python dependenciesConor Kennedy
Change-Id: Id3acb2d225c4890f716052e874f01651ee1a5481 Signed-off-by: Conor Kennedy <conor.kennedy@arm.com>
2023-11-06MLECO-4473: Ensuring Labels objects are not placed in BRAMRichard Burton
Signed-off-by: Richard Burton<richard.burton@arm.com> Change-Id: I833f5edfbd080a67f2863a250be3199879d5f81f
2023-11-03MLECO-3640 MLECO-3678: Adding support for M85 in GCCRichard Burton
Signed-off-by: Richard Burton <richard.burton@arm.com> Change-Id: I087e23f43b41fa0ef97ec7dcaeba807f6cba17e7
2023-10-26MLECO-3995: Pylint + Shellcheck compatibilityAlex Tawse
* All Python scripts updated to abide by Pylint rules * good-names updated to permit short variable names: i, j, k, f, g, ex * ignore-long-lines regex updated to allow long lines for licence headers * Shell scripts now compliant with Shellcheck Signed-off-by: Alex Tawse <Alex.Tawse@arm.com> Change-Id: I8d5af8279bc08bb8acfe8f6ee7df34965552bbe5
2023-10-20MLECO-4449: Update DependenciesLiam Barry
TF and CMSIS-NN updated to support additional NN operation Signed-off-by: Liam Barry <liam.barry@arm.com> Change-Id: I7ef151a598ca7c7cb63977b0cd2f58cdc4fd432b
2023-10-16MLECO-3963 Remove conditional statements for different numpy versionGauri Sahnan
* For numpy versions 1.23 onwards remove comditional python statements Change-Id: Ie0aa54da9fc0f7fd426cd324b1b785d4794fc1c7 Signed-off-by: Gauri Sahnan <gauri.sahnan@arm.com>
2023-10-04MLECO-4365: Add CI Test for insufficient tensor arena and update common tests.Liam Barry
Previously, execution path following failed tensor allocation was not covered by tests. Minor amendment added to make ~Model virtual. During testing it was noticed that intentional errors simulated in certain common tests would result in misleading output for subsequent tests as the error messages appear in the console output of the next failing test. Documentation and print statements added until a solution is found. Change-Id: Iaf3e0f32ce9e0505921251cd41f73030108d2cb1 Signed-off-by: Liam Barry <liam.barry@arm.com>
2023-09-05MLECO-4074: bump up version of armclang to 6.1923.08-rc223.08Nina Drozd
* issues identified with armclang 6.17 and 6.18 * updates in cmake for minimum version * updates in release notes and documentation Change-Id: Iffa711d9d95a509f5c07cd55f59a49bdcf3e9d6a
2023-08-31MLECO-4072: Minor bug fix23.08-rc1Richard Burton
* Adding call to the new ops resolver in inference runner usecase * Change variable names to match code style Signed-off-by: Richard Burton<richard.burton@arm.com> Change-Id: I0537cc18296294ac9d778434c257ad4f4e479310
2023-08-31MLECO-4072: update MLEK dependencies to 23.08Nina Drozd
* version updates in cmakelists file * update submodules to 23.08 versions * updates to documentation - vela 3.9.0 Change-Id: I5e24d5729ecbd2289b04fcc845fb44f455ab38d5 Signed-off-by: Nina Drozd <nina.drozd@arm.com>
2023-08-29MLECO-4260: Replace raw C++ pointers with smart variantsLiam Barry
Model: Added std::unique_ptr qualifier to Model.cc member and used make_unique when creating interpreter object Removed custom destructor and un-necessary memory cleanup following failed allocation DataStructures: Refactored array 2d to use a std::vector under the hood. This should preserve desired attributes including contiguous memory while removing the need for custom destructor. Original size function renamed to dimSize to avoid confusion with vector.size() Accompanying changes made to preprocessing and ASR tests. AppContext: Replaced use of raw pointers in AppContext.hpp. Previously a std::map including IAttribute pointers required individual deallocation as they were allocated using new. Signed-off-by: Liam Barry <liam.barry@arm.com> Change-Id: I1a34dce5dea6ecf4883a9ada3a20f827eb6e6d6b
2023-08-21MLCE-1096: Making Python script Windows-compatibleAlex Tawse
Change-Id: Id52f6b182c5b8325c377f2924e0eeee57f3c4287
2023-07-28MLECO-4246: Bug fix MLEK hardfault when SRAM exceededLiam Barry
GCC builds of inference runner hardfault when tensor allocation fails. Traced to duplicated delete calls on interpreter member variable in app code and ~Model() which has undefined behaviour Signed-off-by: Liam Barry <liam.barry@arm.com> Change-Id: I3872338b4fdc3c25aa26a5cd55991cd575da5a3c
2023-06-22Small fixes based on feedbackRichard Burton
* Typo fix in documentation * Fix bug with build_default.py and passing in --make-verbose * Added additional requirement for third-party dependencies Signed-off-by: Richard Burton <richard.burton@arm.com> Change-Id: Icdac7d4583c4fe3000fe9bc784979b2d1cf70909
2023-06-09MLECO-4065: Revising scripts to use Python3.923.05Kshitij Sisodia
Revising documentation and scripts to use Python3.9 explicitly to remove the need for installing it system-wide that might break a distro's desktop and pacakge manager utilities. Change-Id: I683b55dd0243d0a726dc94eba2431005d4897c8c Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2023-06-06Dockerfile updated from Python 3.8 to Python 3.9Richard Burton
Signed-off-by: Richard Burton <richard.burton@arm.com> Change-Id: I7cfda89a1eac40a47150505bcacea8bf2aef8695
2023-06-06Fix for link to download CMSIS-NN 23.05 dependencyRichard Burton
Signed-off-by: Richard Burton <richard.burton@arm.com> Change-Id: Ide32a976a9d04495ce6a35dd9c0eff1d3470b109
2023-05-30MLECO-4065 MLECO-4066: Updating to 23.05 dependenciesRichard Burton
* Update dependencies to 23.05 versions * Fix for a break caused by changes in TensorFlow Lite Micro * Update release notes Signed-off-by: Richard Burton <richard.burton@arm.com> Change-Id: Id2f60ea574aab982911125bdcb513adb8edc723d
2023-05-05MLECO-3992: Minor improvement for FFT32 tests.Kshitij Sisodia
Added test for FFT on complex vector of 32-bit floats. Change-Id: I236255952335bfd00ce3d811845ffe604167dcc5 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2023-03-28MLECO-3754: Cmsis pack updatesIsabella Gottardi
Change-Id: Ib041604867e761a006d74cef16a33c27d86648eb Signed-off-by: Isabella Gottardi <isabella.gottardi@arm.com>
2023-03-22MLECO-3962: Set specific versions for Python3.7 in requirements.txtConor Kennedy
* For compatibility reasons, use the following versions when running on Python3.7: numpy 1.21.3 scipy 1.7.3 Change-Id: I5213820cc64b51cfa8b4ff49a1bff030e652822d Signed-off-by: Conor Kennedy <conor.kennedy@arm.com>
2023-03-21MLECO-3802: [Maintenance] Remove Pillow warning23.02Isabella Gottardi
- Image.Resampling.BILINEAR replace deprecated Image.BILINEAR - Trivial documentation fixes Change-Id: Ia75af2d2bf171085d4a0a2c472f0e3f94dbdc5b9 Signed-off-by: Isabella Gottardi <isabella.gottardi@arm.com>
2023-03-17MLECO-3842, MLECO-3801, MLECO-3899: Minor improvementsKshitij Sisodia
Some minor improvements in this patch: * Added notes on troubleshooting WSL2 build issues. * Fixed a stray guard for MPS3_PLATFORM from noise reduction use-case. * The default build script `build_default.py` will now return an error code to the calling process if it fails. Change-Id: I4557a402646fdf903b2cb043bf68d5d0b0d12972 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2023-03-15MLECO-3666: Updating to 23.02 dependencies.23.02-rc1Kshitij Sisodia
Updating dependency submodules to 23.02 versions. See https://review.mlplatform.org/plugins/gitiles/ml/ethos-u/ethos-u/+/refs/tags/23.02/23.02.json Change-Id: If0e396decadc1b4e3c6b263c65f75ccf0dafed28 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2023-02-16MLECO-3847: Optimisation flag for TensorFlow Lite MicroKshitij Sisodia
Overriding the default THIRD_PARTY_KERNEL_OPTIMIZATION_LEVEL flag for comilation of Arm CMSIS-NN library. GNU linker script also needed to be modified with this change because of increase in the code footprint. Change-Id: I65c76fcaf4b6421533086a0905b2e6f0048b46fd Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2023-02-13MLECO-2709: Inclusive language updateConor Kennedy
* Update various files to use inclusive language Signed-off-by: Conor Kennedy <conor.kennedy@arm.com> Change-Id: I538f61a400e1d58acb6397bb5e2ba3d912196314
2023-01-05MLECO-3677: Adding links for AN555 resources.Kshitij Sisodia
Minor documentation updates to add links for Arm Corstone-310 implementation `AN555`. Change-Id: I5fd1f577b0adcb1041aaefbc41d121ce52404e09 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-12-29MLECO-3747: Minor changes to Catch2 inclusionKshitij Sisodia
Catch2, included for tests on native target, is now added using FetchContent to download it at configuration stage. Minor improvements added to prevent name clashes if this project is used as a submodule in other projects where Catch2 is already a named dependency/target. Change-Id: I6f0ff02704e54a5c4cefe499ac80d434cf89b463 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-12-23MLECO-3748: Documentation updatesKshitij Sisodia
Added documentation around known issue with Arm GNU toolchain version 12.2.1. Minor change for MLECO-3731 also included. Link-time warnings for Arm GNU toolchain 11.3.1 also fixed. Change-Id: Ia8215e9f71327eeb59868aea91729d7b19dd6d34 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-12-21MLECO-3659: Improvement for NPU PMU countersKshitij Sisodia
The NPU idle count could have been erraneously high as the counters were always running. This change utilises callback functions to start/stop the counters only when the inferences start/stop executing on the NPU. Changes have been made to cache maintenance functions called from within the NPU driver's pipeline to reduce the overhead caused by these. Change-Id: I69db0d3b3f3fe5b2847e15b5c3096cb1e0484176 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-12-19MLECO-3611: Formatting fixes for generated files.Kshitij Sisodia
Template files updated for generated files to adhere to coding guidelines and clang format configuration. There will still be unavoidable violations, but most of the others have been fixed. Change-Id: Ia03db40f8c62a369f2b07fe02eea65e41993a523 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-12-09MLECO-3716: Update package versions in requirements.txt for Python 3.10Conor Kennedy
Change-Id: Iad3299379f2672510a569b22324823a0377c7179 Signed-off-by: Conor Kennedy <conor.kennedy@arm.com>
2022-12-06MLECO-3710: Fix for freshly updated submodule build issue.Kshitij Sisodia
TensorFlow Lite Micro can have stale third party components downloaded by an older version. On a submodule update, our recommendation to users would be to use `-DTENSORFLOW_LITE_MICRO_CLEAN_DOWNLOADS=ON` to clean the older downloads. Moving the triggered cleaning and refresh to CMake configuration stage (with no parallel build option). This should have a better chance of success with the subsequent build step. Change-Id: I305439c09658f49765ecc15eb1ce0c8b914dd30a
2022-12-01MLECO-3620 MLECO-3619: Update to 22.11 dependencies22.11-rc122.11Richard Burton
* CMSIS-NN is now a seperate dependency * Added inclusive language commitment * TensorFlow Lite Micro dependency is moved ahead of 22.11 to fix compilation issue Change-Id: I60e3311ff7da2ce064cbcdca054a86bdd1f620d8
2022-11-17MLECO-3583: Update copyright notice according to new guidelinesRichard Burton
Change-Id: I0f057b33993e5196a60e52f4fb0c60e09693dcfe
2022-11-09MLECO-3247: Arm Corstone-310 deployment instructions updateKshitij Sisodia
Minor documentation updates for Corstone-310 target along with version bump for the project and updates to release notes. Change-Id: I8b33b66961ab0517864539d88501ad5d71219368 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-11-08MLECO-3608: Fix memory regions for gcc linker.Maksims Svecovs
Move `text` to .text.at_bram. We have to do it explicitly when linking with gcc (ld). Signed-off-by: Maksims Svecovs <maksims.svecovs@arm.com> Change-Id: Ib3c377227790568046c9495792d186e45ab06c15
2022-11-02MLECO-3238: Fix for cache clean/invalidationKshitij Sisodia
Small fix for the issue of weakly defined "clean" and "invalidation" functions for D-cache in use. Change-Id: I452768ef216393834f20395a56cde6ff5f52d29a Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-10-31MLECO-3578: Adding support for Arm Compiler 6.19Kshitij Sisodia
Minor update to retarget.c for system function `tmpnam`. Change-Id: I08cced273e517d00644167f8f5520b09f3c9d10c Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-10-17MLECO-3575: Add option to manually set PARALLEL_JOBS for buildConor Kennedy
* Check CMAKE_BUILD_PARALLEL_LEVEL and use this option to set the value of PARALLEL_JOBS Signed-off-by: Conor Kennedy <conor.kennedy@arm.com> Change-Id: I039d88a1099932978e00a711fe58d31a85d2cd06
2022-10-14MLECO-3562: Trivial documentation link updateKshitij Sisodia
Link update in docs/sections/building.md file. Change-Id: I6b4b95bc4c3e911123ee745e64fe6075af563011 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-10-12MLECO-3100: Added summary document of use-casesKshitij Sisodia
Update for use-case API and CMSIS pack. Change-Id: Ic730a80fa43ba2a6e3eaa05333b61d3e1677b04e Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-10-12MLECO-3562: Add documentation on CMake PresetsMaksims Svecovs
Adds documentation on how to configure and use CMake Presets in VS Code. Signed-off-by: Maksims Svecovs <maksims.svecovs@arm.com> Change-Id: I0aa5d598415895268cabc9cbe36e7582a6fea789
2022-10-06MLECO-3164: Additional refactoring of KWS APIRichard Burton
Part 1 * Add KwsClassifier * KwsPostProcess can now be told to average results * Averaging is handlded by KwsClassifier * Current sliding window index is now an argument of DoPreProcess Change-Id: I07626da595ad1cbd982e8366f0d1bb56d1040459
2022-10-05MLECO-3552: Workaround for toolchain presetMaksims Svecovs
There is a currently known bug that ${fileDir} in included presets evaluates to the path of parent file, not path of the file with ${fileDir} macro. To be able to use the toolchain preset in case of MLEK included as submodule - add an environment variable to be set by the parent project. Since this variable is not set by the MLEK project - it does not affect the functionality in MLEK. Signed-off-by: Maksims Svecovs <maksims.svecovs@arm.com> Change-Id: I4b789a12533f0474ed5490cf7a793e953a110898
2022-10-05MLECO-3065 Adding Git hook setup scriptEanna O Cathain
Change-Id: Ia900b17f13f1329b2788360e8dde639807f08099 Signed-off-by: Eanna O Cathain <eanna.ocathain@arm.com>
2022-10-03MLECO-3149: Add CTest driven FVP runs for non-native targets.Sarah Blades
Additional CMake configuration parameters required: * `BUILD_FVP_TESTS`: Selects whether these tests are built, OFF by default. * `FVP_PATH`: Path to the FVP that MUST be provided for the configuration to succeed. Change-Id: I741379cd0a6078a3e2c3163e6b253b2f5dc25c58 Signed-off-by: Sarah Blades <sarah.blades@arm.com>
2022-10-03MLECO-3545: Minor updates to CMSIS-packsKshitij Sisodia
CMSIS-pack under resources and the pack generation input YML file updated. Change-Id: I4883d635ec3ce6eadb0ce38bbd962f3a5e8f92c3 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-09-28MLECO-3518: Separates CMakePrestsMaksims Svecovs
Separates CMakePresets to respective. Adds options preset file with log-level and single-input for use-cases. Adds use-case file with base build preset with all the targets. Adds a configurable targets to all build presets. Adds additional config/build preset to show-off options-presets. Signed-off-by: Maksims Svecovs <maksims.svecovs@arm.com> Change-Id: Id82ce9c5b8d7cc48b80d784141dc22efa2690222
2022-09-28MLECO-3518: Move to CMake 3.23.3Maksims Svecovs
For the purpose of using decoupled presets move required CMake version to 3.23.3 that supports "includes" option for presets. Updates the documentation. Signed-off-by: Maksims Svecovs <maksims.svecovs@arm.com> Change-Id: I259e8e3a4641294d8ccdee429c7284d8160b9e24