aboutsummaryrefslogtreecommitdiff
path: root/Utils.cpp
AgeCommit message (Collapse)Author
2020-04-30IVGCVSW-4771 Add support for Boolean and QAsymmS8 in dump filesTeresa Charlin
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: I89c245c0d3ca291e1d9864121b68762205278f35
2020-04-07IVGCVSW-4485 Remove Boost assertNarumol Prangnawarat
Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com> Change-Id: If602024a339df7548333e470545f9400c3daf7b3
2020-04-01IVGCVSW-4441 Add Support for ANEURALNETWORKS_ELU to HAL 1.3 DriverSadik Armagan
* Read alpha parameter for ELU operation * Created ConvertionUtils_1_3 for 1.3 Driver * Added QAsymmS8 data type support to swizzle the tensor Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I9d66a4e8d5468efa305bb8f6c352f13d27602274
2020-03-31IVGCVSW-4640 Fix HAL 1.3 build issues from update of AOSP masterKevin May
Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I19dd23f938f571f3f63bb1e070d27d27cbe65c1a
2020-03-31IVGCVSW-4407 HAL 1.3 Operators SupportSadik Armagan
* IVGCVSW-4441 Add Support for ANEURALNETWORKS_ELU * IVGCVSW-4443 Add Support for ANEURALNETWORKS_HARD_SWISH * IVGCVSW-4448 Add TENSOR_QUANT8_ASYMM_SIGNED data type support Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: Idb9bb3f463b956221711423c15b6557eeb1af7db
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-19IVGCVSW-4565 TENSOR_BOOL8 data type not supported in AndroidNN DriverSadik Armagan
* Added TENSOR_BOOL8 support * Added Broadcast support to comparision operators !armnn:2903 Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I844e32b57399eff2dc60af9b2099145316c80cae
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-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-23IVGCVSW-4266 Dump float16 input/output tensorsJim Flynn
Change-Id: Iff91ce6857a9f96a7af65f79883c1cbe59a15dd2 Signed-off-by: Jim Flynn <jim.flynn@arm.com>
2020-01-23IVGCVSW-4370 Remove use of deprecated per-axis typeDerek Lamberti
!armnn:2620 Signed-off-by: Derek Lamberti <derek.lamberti@arm.com> Change-Id: I8d71bac981a7576c7f51783833f76151495c62c0
2020-01-13Rename quantized data typesDerek Lamberti
!armnn:2571 Signed-off-by: Derek Lamberti <derek.lamberti@arm.com> Change-Id: I06977553a097479a2a996e76a106249673d31ed7
2019-12-06IVGCVSW-4211 Rename QuantisedSymm8 to QSymmS8experimental/resizeCheckFinnWilliamsArm
!armnn:2421 Signed-off-by: FinnWilliamsArm <Finn.Williams@Arm.com> Change-Id: I30da5235f6610306f9300b4532cf2c79ee8789f8
2019-12-02IVGCVSW-4209 Remove the Half.hpp header usage from the driverMatteo Martincigh
* Removed the inclusion of the Half.hpp header from the Android NN Driver, as it's a private header not part of the now public armnnUtils API * Refactored the code not to use that header Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com> Change-Id: I0feeb86ccb31e016395e623029974f599a174149
2019-11-28IVGCVSW-4209 Create a public API for the ArmNN UtilsMatteo Martincigh
* Using the new public armnnUtils API !armnn:2386 Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com> Change-Id: Ifa8af20ca131b1be19dbdceea6674a1274a396f3
2019-11-19MLCE-144 Cts NNAPI test cases failedMike Kelly
* Fixed numerous CTS/VTS failures related to Quantization !armnn:2316 Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: I50b7edf42e416abd230783a5081d1a6511bc42d4
2019-11-18IVGCVSW-4139 Fix regression in ConvertDequantize()Aron Virginas-Tar
* Removed TENSOR_QUANT8_SYMM from the list of generally supported tensor data types * Fixed tensor info in DequantizeIfRequired() for on the fly dequantized QSymm8 weights * Moved code for checking whether a Dequantize operator is linked to FullyConnected or Lstm weights from ConvertDequantize() into a separate function inside 1.2/HalPolicy.cpp Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: I19ea6f89a90f553a964b87d44f8ad8a064e96f7f
2019-11-07MLCE-133 Fixed ASR hero use-casePablo Tello
* Added workaround in FC to deal with non const weights * Added workaround in LSTM to deal with non const weights Signed-off-by: Pablo Tello <pablo.tello@arm.com> Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com> Change-Id: I854eea6a74a6959606ff25b52a0ed80b3e0a18ab
2019-11-06IVGCVSW-3841 Add support for per-axis quantizationAron Virginas-Tar
Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: Ife7fa63b8839465e8f9f8626f34ca8c0f4d12788
2019-07-25IVGCVSW-3521 CpuAcc V1.2 pad FailuresMike Kelly
* Fixed Pad and PadV2 failures and skips. * Templated ConvertPad to enable float16 tests to run. Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: I50ded84fe44ea5d5949e877f383f32adff88680d
2019-07-23IVGCVSW-3553 Fix failing zero_sized testsAron Virginas-Tar
Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: Idd10f34babc0d2552d599872b853ba5fb5c98351
2019-06-11IVGCVSW-3181 Add HAL 1.2 support to android-nn-driverMike Kelly
* Updated Android.mk to build HAL 1.2 driver * Added 1.2 HalPolicy and ArmnnDriver * Added 1.2 ArmnnPreparedModel * Updated converters and utilities to accept new HAL 1.2 operands and operand types. Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: I62856deab24e106f72cccce09468db4971756fa6
2019-05-07IVGCVSW-2911 Work towards compatibility with QMatthew Bentham
Explicitly use HAL V1_0 Operand, OperandType, and IPreparedModelCallback Change-Id: If6aa6e9dc1bd0b7673ec247ac3560e7f072ef699 Signed-off-by: Matthew Bentham <matthew.bentham@arm.com>
2019-01-07IVGCVSW-2421 Remove the template-based version of armnnUtils::PermuteMatteo Martincigh
in favor of a type-indepent implementation that takes void-pointers * Updated the code to make use of the new version of Permute !armnn:468 Change-Id: I10a5f353ee87822f161a968bb04d18af037fd103
2018-09-18IVGCVSW-1807: change license text in file headersDavid Beck
All changes are the same: // // Copyright © 2017 ARM Ltd. All rights reserved. -// See LICENSE file in the project root for full license information. +// SPDX-License-Identifier: MIT // Change-Id: Ibb7ed1e4e2191b9a978e26b5bacf916db403a60e
2018-09-18IVGCVSW-1806 Refactored Android-NN-Driver, added common "getCapabilities",Matteo Martincigh
"getSupportedOperations" and "prepareModel" implementations * Added common base ArmnnDriverImpl class * Added common template implementation of the driver's "getCapabilities", "getSupportedOperations" and "prepareModel" methods * Refactored ArmnnPreparedModel and RequestThread to support HAL v1.1 models * Moved "getStatus" to the common base class, as it is shared by both HAL implementations * Refactored the code where necessary Change-Id: I747334730026d63b4002662523fb93608f67c899
2018-09-18IVGCVSW-1770: Refactor ModelToINetworkConverter to allow conversion of ↵kevmay01
HAL1.1 operators Change-Id: I9b10f0a9c88344df108b2325c0233f9660fa6b7c
2018-08-31Release 18.08telsoa01
2018-07-05Release 18.05.02surmeh01
2018-03-29Release 18.03surmeh01
2018-03-09Release 18.02telsoa01
Change-Id: I41a89c149534a7c354a58e2c66a32cba572fc0c1