platform/upstream/armnn.git
4 years agoIVGCVSW-4161 Provide for per model call back registration
Finn Williams [Thu, 27 Feb 2020 16:21:41 +0000 (16:21 +0000)]
IVGCVSW-4161 Provide for per model call back registration

!armnn:2810

Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: Idf56d42bd767baa5df0059a2f489f75281f8ac71

4 years agoUpdate ACL pin to fd7780d910f3bc4c85bc95b57ea3dd4375d95d41
Nikhil Raj [Wed, 18 Mar 2020 10:00:00 +0000 (10:00 +0000)]
Update ACL pin to fd7780d910f3bc4c85bc95b57ea3dd4375d95d41

Signed-off-by: Nikhil Raj <nikhil.raj@arm.com>
Change-Id: I83bf33aeec93326b9b2c99db4e5151404df5bb30

4 years agoIVGCVSW-4515 Add ConvertBf16ToFp32Layer and Ref workload support
Narumol Prangnawarat [Fri, 13 Mar 2020 10:26:05 +0000 (10:26 +0000)]
IVGCVSW-4515 Add ConvertBf16ToFp32Layer and Ref workload support

Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: Ida6d7e1d2c9abe0618f8b711bab9d62c011090d6

4 years agoIVGCVSW-4545 Relax check on ParseReshape
Derek Lamberti [Tue, 17 Mar 2020 14:25:57 +0000 (14:25 +0000)]
IVGCVSW-4545 Relax check on ParseReshape

Change-Id: Icae7c40abb307e1bbdd383ab3f835f5a1bee2db1
Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
4 years agoMLCE-161: Added support for NormalizationLayer in ArmnnQuantizer.
Pablo Tello [Thu, 12 Mar 2020 10:58:39 +0000 (10:58 +0000)]
MLCE-161: Added support for NormalizationLayer in ArmnnQuantizer.

* Improved error reporting by using VisitorThrowingPolicy in
   DynamicQuantizationVisitor.

Change-Id: I8a7d0975d448e6c2b6efb5f315ac255eec29f7a2
Signed-off-by: Pablo Tello <pablo.tello@arm.com>
4 years agoUpdate ACL pin 0ec53a0e54ae0be0ed9c4e4c14a5fd10ed5f48a8 (COMPMID-3238)
Nikhil Raj [Mon, 16 Mar 2020 09:45:43 +0000 (09:45 +0000)]
Update ACL pin 0ec53a0e54ae0be0ed9c4e4c14a5fd10ed5f48a8 (COMPMID-3238)

Signed-off-by: Nikhil Raj <nikhil.raj@arm.com>
Change-Id: I035b3aeef778cd415224e9238f463bc706c00080

4 years agoIVGCVSW-4531 Fix for failing strided slice NNT/VTS tests on Android R
David Monahan [Fri, 13 Mar 2020 07:52:54 +0000 (07:52 +0000)]
IVGCVSW-4531 Fix for failing strided slice NNT/VTS tests on Android R

Signed-off-by: David Monahan <david.monahan@arm.com>
Change-Id: I7f6932f0d21b5678ab9822b0fc69f589bbbb07e5

4 years agoIVGCVSW-3726 Upload ArmNN Doxygen files
Ryan OShea [Fri, 13 Mar 2020 16:26:19 +0000 (16:26 +0000)]
IVGCVSW-3726 Upload ArmNN Doxygen files

 * Upload current ArmNN Doxygen files

Signed-off-by: Ryan OShea <Ryan.OShea2@arm.com>
Change-Id: I8989ed16ee40a99a4495b100bd009cf3e24a7285

4 years agoUpdate ACL pin to 470bc1eea65560d13001e60a7f7b22b12ec89bbc(COMPMID-3069)
Nikhil Raj [Fri, 13 Mar 2020 09:35:04 +0000 (09:35 +0000)]
Update ACL pin to 470bc1eea65560d13001e60a7f7b22b12ec89bbc(COMPMID-3069)

Signed-off-by: Nikhil Raj <nikhil.raj@arm.com>
Change-Id: Ie966c938752e06ddc8a6d03b973edd0291864a39

4 years agoIVGCVSW-4512 Add BFloat16 Debug Workload
Narumol Prangnawarat [Thu, 12 Mar 2020 14:24:13 +0000 (14:24 +0000)]
IVGCVSW-4512 Add BFloat16 Debug Workload

Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: Id179cb4774a4565e5e905e5fe4c34299178644de

4 years agoIVGCVSW-4511 Add BFloat16 to RefLayerSupport and unit tests
Narumol Prangnawarat [Wed, 11 Mar 2020 14:51:27 +0000 (14:51 +0000)]
IVGCVSW-4511 Add BFloat16 to RefLayerSupport and unit tests

Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: Ifaae4d5aac468ba927b2c6a4bf31b8c8522aeb2e

4 years agoGatordMock: Fixing errors in parsing command file.
Colm Donelan [Mon, 2 Mar 2020 21:35:10 +0000 (21:35 +0000)]
GatordMock: Fixing errors in parsing command file.

An empty line resulted in program exit.

* Ignore empty lines.
* Add error message when an invalid number of parameters to
  SET or WAIT command is encountered.

Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Change-Id: Ie2d229c1330b71b559d988d4ecb8019f2f850333

4 years agoIVGCVSW-4545 Fix segfault parsing reshape layer
Derek Lamberti [Wed, 11 Mar 2020 11:42:26 +0000 (11:42 +0000)]
IVGCVSW-4545 Fix segfault parsing reshape layer

Change-Id: Ib4bbab387cec4780c8aae56fdede090fa265e4ba
Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
4 years agoUpdate ACL pin to 6800117df3be825f0ec5c6cc71c4377322f51b99
Nikhil Raj [Thu, 12 Mar 2020 10:03:03 +0000 (10:03 +0000)]
Update ACL pin to 6800117df3be825f0ec5c6cc71c4377322f51b99

Signed-off-by: Nikhil Raj <nikhil.raj@arm.com>
Change-Id: Ic9180b560ba527a14800c452453cb027120fac0c

4 years agoIVGCVSW-3726 Doxygen touch-up
Ryan OShea [Wed, 12 Feb 2020 16:15:27 +0000 (16:15 +0000)]
IVGCVSW-3726 Doxygen touch-up

 * Doxygen comment touch-ups
 * Fixed markup in .dox files
 * Fixed stylesheet
 * Doxyfile changes
 * Added logo file
 * Added header file

Signed-off-by: Ryan OShea <Ryan.OShea2@arm.com>
Change-Id: I94c7f5a6923a0bbb5c6ed610f1f55d57e2bb8a49

4 years agoIVGCVSW-4542 Refactor TimelineDecoder parsing of TimelinePackets
Keith Davis [Wed, 11 Mar 2020 12:17:05 +0000 (12:17 +0000)]
IVGCVSW-4542 Refactor TimelineDecoder parsing of TimelinePackets

 * Added test to add multiple SwTraceMessages to the buffer
 * Updated TimelineCaptureCommandHandler to iterate until there
   are no more read functions in the packet
 * Further commenting

Change-Id: I41d5acf4f7288ce5a51ffd10a5eea335ac3026ec
Signed-off-by: Keith Davis <keith.davis@arm.com>
4 years agoIVGCVSW-3726 - Doxygen Beautification
Ryan OShea [Wed, 12 Feb 2020 16:15:27 +0000 (16:15 +0000)]
IVGCVSW-3726 - Doxygen Beautification

 * Added .dox files for main sections
 * Merged .md files into .dox files
 * Updated Doxyfile
 * Stylesheet for Doxygen

Signed-off-by: Ryan OShea <Ryan.OShea2@arm.com>
Change-Id: Ic13c28b3235fca91aeb463cd5063750aa6d85be8

4 years agoUpdate ACL pin to 1c2ff950071c5b4fd6e83487083d23c96637545f
Nikhil Raj [Wed, 11 Mar 2020 15:16:39 +0000 (15:16 +0000)]
Update ACL pin to 1c2ff950071c5b4fd6e83487083d23c96637545f

Signed-off-by: Nikhil Raj <nikhil.raj@arm.com>
Change-Id: I718d0553f1d30f0b62d75d8dfb03a9556eb2a347

4 years agoIVGCVSW-4517 Modify BFloat16 to conformant to the coding standards
Narumol Prangnawarat [Wed, 11 Mar 2020 11:34:55 +0000 (11:34 +0000)]
IVGCVSW-4517 Modify BFloat16 to conformant to the coding standards

Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: I85b6967469dc1fddbbc875b34ba107480b78089a

4 years agoMLCE-159 Add QAsymmS8 to ArmnnQuantizer
Francis Murtagh [Tue, 10 Mar 2020 13:51:45 +0000 (13:51 +0000)]
MLCE-159 Add QAsymmS8 to ArmnnQuantizer

 * Allow per layer quantization from Fp32 to Int8 (QAsymmS8) like TfLite

Signed-off-by: Francis Murtagh <francis.murtagh@arm.com>
Change-Id: I5bbf770aa29d81af3568c15b47d2b2c18e55bb28

4 years agoGithub #326 Allow linking against shared Compute Library
Matthew Bentham [Tue, 10 Mar 2020 11:13:17 +0000 (11:13 +0000)]
Github #326 Allow linking against shared Compute Library

As a last resort, check for shared Compute Library in standard paths.
This will work for Linux distribution builds where no static Compute
Library has been installed.

Change-Id: I1ea11d184ef9dcf4480ae0687a4ba81b402c5b2d
Signed-off-by: Matthew Bentham <Matthew.Bentham@arm.com>
4 years agoIVGCVSW-4482 Remove boost::ignore_unused
Jan Eilers [Mon, 9 Mar 2020 12:13:48 +0000 (12:13 +0000)]
IVGCVSW-4482 Remove boost::ignore_unused

!referencetests:229377

Signed-off-by: Jan Eilers <jan.eilers@arm.com>
Change-Id: Ia9b360b4a057fe7bbce5b268092627c09a0dba82

4 years agoIVGCVSW-4517 Implement BFloat16 Encoder and Decoder
Narumol Prangnawarat [Fri, 6 Mar 2020 14:45:57 +0000 (14:45 +0000)]
IVGCVSW-4517 Implement BFloat16 Encoder and Decoder

 * Add ConvertFloat32ToBFloat16
 * Add ConvertBFloat16ToFloat32
 * Add BFloat16Encoder
 * Add BFloat16Decoder
 * Unit tests

Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: I198888384c923aba28cfbed09a02edc6f8194b3e

4 years agoIVGCVSW-4541 Modify Timeline Packet construction
Keith Davis [Thu, 5 Mar 2020 16:25:28 +0000 (16:25 +0000)]
IVGCVSW-4541 Modify Timeline Packet construction

 * Changed TimelinePacket encoding so that there is only one header for
   multiple timeline swtrace messages
 * Refactored function names to have more suitable description
 * Refactored CodeStyle to coincide with ArmNN coding standards
 * Refactored profiling test names to be descriptive
 * Refactored ErrorCode name to TimelineStatus
 * Updated existing unit tests

Signed-off-by: Keith Davis <keith.davis@arm.com>
Change-Id: I83bd4bb9e7393617bca97eba96a6e1388916e5b0

4 years agoIVGCVSW-4486 Introduce numeric_cast implementation
Derek Lamberti [Wed, 19 Feb 2020 13:40:56 +0000 (13:40 +0000)]
IVGCVSW-4486 Introduce numeric_cast implementation

Change-Id: I3e64bca4a1709ac199513676579cf3c9a3090f26
Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
4 years agoMLCE-160 Error loading quantized model containing BatchNorm Layer
Mike Kelly [Wed, 4 Mar 2020 18:01:13 +0000 (18:01 +0000)]
MLCE-160 Error loading quantized model containing BatchNorm Layer

 * Relaxed restrictions in BatchNormalizationQueueDescriptor::Validate

Signed-off-by: Mike Kelly <mike.kelly@arm.com>
Change-Id: I3101971c2101e90144bbbf7b63367cb0ef09573f

4 years agoIVGCVSW-4540 Fix master build failure to link UnitTests on Android
Sadik Armagan [Mon, 9 Mar 2020 11:04:32 +0000 (11:04 +0000)]
IVGCVSW-4540 Fix master build failure to link UnitTests on Android

Change-Id: I22148a0bf243eabfd045475644510f30096d96e3
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Signed-off-by: Sadik Armagan <sadik.armagan@arm.com>
4 years agoIVGCVSW-4483 Introduce polymorphic_downcast implementation
Derek Lamberti [Wed, 19 Feb 2020 13:30:47 +0000 (13:30 +0000)]
IVGCVSW-4483 Introduce polymorphic_downcast implementation

Change-Id: I958dd719162337eb5c7e71f4ac49dd5784564b1a
Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
4 years agoIVGCVSW-4517 Add BFloat16 class and unit tests
Narumol Prangnawarat [Thu, 5 Mar 2020 17:27:45 +0000 (17:27 +0000)]
IVGCVSW-4517 Add BFloat16 class and unit tests

Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: Ie2e9e617b9210d79a26e7ba58ecc874d1202e599

4 years agoIVGCVSW-4539 Add missing Activation Unit Test to CL and Neon
Teresa Charlin [Thu, 5 Mar 2020 14:41:50 +0000 (14:41 +0000)]
IVGCVSW-4539 Add missing Activation Unit Test to CL and Neon
    *Square, Tanh, SoftReLu, LeakyReLu, Abs, ReLU

Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com>
Change-Id: Id7beed0b6770177722bf0f93957706620df81b0d

4 years agoIVGCVSW-4485 Introduce ARMNN_ASSERT(_MSG) macros
Derek Lamberti [Wed, 19 Feb 2020 13:25:42 +0000 (13:25 +0000)]
IVGCVSW-4485 Introduce ARMNN_ASSERT(_MSG) macros

Change-Id: Iba372f7311a68877a42e52595430db212c5c9fec
Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
4 years agoIVGCVSW-4482 Introduce IgnoreUnused implementation
Derek Lamberti [Wed, 19 Feb 2020 13:17:02 +0000 (13:17 +0000)]
IVGCVSW-4482 Introduce IgnoreUnused implementation

Change-Id: Iad534e0e15ce561be6d0ffa23be19496be361385
Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
4 years agoUpdate Acl Pin adb3291dda4e56de1af10e783b787445d6587a38
Kevin May [Wed, 4 Mar 2020 08:34:13 +0000 (08:34 +0000)]
Update Acl Pin adb3291dda4e56de1af10e783b787445d6587a38

* COMPMID-3100 Fuse bias addition with fully connected layer NEON
Signed-off-by: Kevin May <kevin.may@arm.com>
Change-Id: I7a1953c4b611934ab0180c2a934fd047a6c6967a

4 years agoIVGCVSW-4213 Enable split along any dimension
Ryan OShea [Wed, 4 Mar 2020 12:42:05 +0000 (12:42 +0000)]
IVGCVSW-4213 Enable split along any dimension

 * Remove check on split dimension

Signed-off-by: Ryan OShea <Ryan.OShea2@arm.com>
Change-Id: I03b88b8c8f1dcd842d9cc9d783ad7d0aa2c0ed3a

4 years agoIVGCVSW-4160 Make the ARM Developer Studio code a self contained build entity
Finn Williams [Wed, 26 Feb 2020 10:25:26 +0000 (10:25 +0000)]
IVGCVSW-4160 Make the ARM Developer Studio code a self contained build entity

!armnn:2773

Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: I246cf0de04a1d29dd135cb0fc7e55bc5f0d4b854

4 years agoIVGCVSW-4163 Enhance the error handling in the ReadPacket function
Sadik Armagan [Tue, 3 Mar 2020 10:44:56 +0000 (10:44 +0000)]
IVGCVSW-4163 Enhance the error handling in the ReadPacket function

* Introduced armnn::SocketConnectionException with fields error no and socket info.

Signed-off-by: Sadik Armagan <sadik.armagan@arm.com>
Change-Id: Ideb85b00771864e332226635aeff3096fbea8e5f

4 years agoIVGCVSW-4508 Add BFloat16 data type
Narumol Prangnawarat [Fri, 28 Feb 2020 12:45:21 +0000 (12:45 +0000)]
IVGCVSW-4508 Add BFloat16 data type

Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: Ie2fcf06d0bae9e2ef958e60ab9e8b121fdc7b590

4 years agoIVGCVSW-4375 Add support for Transpose to optimizations
Mike Kelly [Tue, 3 Mar 2020 12:39:09 +0000 (12:39 +0000)]
IVGCVSW-4375 Add support for Transpose to optimizations

 * Changed some existing Permutation specific optimizations to also support Transpose
 * Added MoveTransposeUp optimization
 * Added TransposeAsReshape optimization
 * Added tests for Transpose optimizations
 * Added missing layer tests for Transpose

Signed-off-by: Mike Kelly <mike.kelly@arm.com>
Change-Id: I20d099b284861402ae94aaa5dbf34907327a485f

4 years agoIVGCVSW-4314 Per-layer backend hint API
Derek Lamberti [Fri, 3 Jan 2020 16:53:38 +0000 (16:53 +0000)]
IVGCVSW-4314 Per-layer backend hint API

Change-Id: I6ddcffe792e39b17fcdb8af7f13f4a689ef8019d
Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
4 years agoIVGCVSW-4532 Update Acl Pin to fec13b8e20dc9d71d729f750633fa52c3a8a0036
Kevin May [Tue, 3 Mar 2020 12:10:10 +0000 (12:10 +0000)]
IVGCVSW-4532 Update Acl Pin to fec13b8e20dc9d71d729f750633fa52c3a8a0036

* Fix NeonLayerSupport/IsLayerSupportedUint8Neon Quantize layer Unit Test

Signed-off-by: Kevin May <kevin.may@arm.com>
Change-Id: I71deb10dd3bb18e30c77b72d6ca25a9a4f8842c3

4 years agoIVGCVSW-4426 Add missing Neon tests for quantized types
Keith Davis [Thu, 20 Feb 2020 16:41:25 +0000 (16:41 +0000)]
IVGCVSW-4426 Add missing Neon tests for quantized types

Signed-off-by: Keith Davis <keith.davis@arm.com>
Change-Id: I3b33a88801b65697d7580f1f4ebd96cfab6b796e

4 years agoIVGCVSW-4375 Add parser support for Transpose
Mike Kelly [Mon, 2 Mar 2020 11:41:31 +0000 (11:41 +0000)]
IVGCVSW-4375 Add parser support for Transpose

 * Changed TfParser::ParseTranspose to use Transpose instead of Permute
 * Changed TfLiteParser::ParseTranspose to use Transpose instead of Permute

!armnn:2787

Signed-off-by: Mike Kelly <mike.kelly@arm.com>
Change-Id: If48f2fb88d97d31d66b6b1e631b41637d8e4c8f0

4 years agoModifying the IBackendProfilingContext interface to return a bool on
David Monahan [Wed, 26 Feb 2020 10:24:03 +0000 (10:24 +0000)]
Modifying the IBackendProfilingContext interface to return a bool on
EnableProfiling and adding error checking to the Runtime
Invocation

Signed-off-by: David Monahan <david.monahan@arm.com>
Change-Id: I65b8bb16c6f1c7d668de31238ce0408a48974997

4 years agoIVGCVSW-4440 : Add HARD_SWISH Support to Activation in CpuRef
Colm Donelan [Wed, 26 Feb 2020 15:39:23 +0000 (15:39 +0000)]
IVGCVSW-4440 : Add HARD_SWISH Support to Activation in CpuRef

* Add a new Activiation type of HardSwish.
* Add CpuRef support and tests.

Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Change-Id: I68c3840aa45b7a27d5e416a5d50fe8f99f003ce8

4 years agoIVGCVSW-4375 Add support for Transpose
Mike Kelly [Fri, 28 Feb 2020 18:11:58 +0000 (18:11 +0000)]
IVGCVSW-4375 Add support for Transpose

 * Added TransposeLayer
 * Added CL, Neon and Ref Workloads
 * Added Transpose utilities
 * Added Serializer and Deserializer support
 * Added Quantizer support

Signed-off-by: Mike Kelly <mike.kelly@arm.com>
Change-Id: I04c755ba7cb5b1edf72b3c9f3c0314878032e3c7

4 years agoIVGCVSW-4164 Change the callbacks to a C++ pure virtual interface
Finn Williams [Fri, 21 Feb 2020 11:14:08 +0000 (11:14 +0000)]
IVGCVSW-4164 Change the callbacks to a C++ pure virtual interface

Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: I0a15b9f228ceb5a8393a48571b345394c005ee1f

4 years agoIVGCVSW-4454 Remove the CounterSet and Device fields from Category
Sadik Armagan [Tue, 25 Feb 2020 12:44:44 +0000 (12:44 +0000)]
IVGCVSW-4454 Remove the CounterSet and Device fields from Category

Signed-off-by: Sadik Armagan <sadik.armagan@arm.com>
Change-Id: I721f59cd1f6d068e02dabd62c42871a43be9d934

4 years agoIVGCVSW-4439: Adding Elu support to Activation
David Monahan [Tue, 25 Feb 2020 09:03:29 +0000 (09:03 +0000)]
IVGCVSW-4439: Adding Elu support to Activation

 * Added CpuRef implementation
 * Added Unit Tests
 * Added Quantizer Test
 * Enabled Tests for Neon and CL backends on fp32 only
 * Added to Serializer

Signed-off-by: David Monahan <david.monahan@arm.com>
Change-Id: Ic23e1797dbc9352b40678c389d7fe2b836b582ea

4 years agoCOMPMID-3060: Add TF Parser support for Transpose
Sang-Hoon Park [Tue, 18 Feb 2020 11:27:35 +0000 (11:27 +0000)]
COMPMID-3060: Add TF Parser support for Transpose

Signed-off-by: Sang-Hoon Park <sang-hoon.park@arm.com>
Change-Id: I9661787071554b38c5b0ab3c98431f3863b98520

4 years agoIVGCVSW-4368 Update Android.mk and backend.mk files with latest unit tests
Colm Donelan [Thu, 20 Feb 2020 14:31:49 +0000 (14:31 +0000)]
IVGCVSW-4368 Update Android.mk and backend.mk files with latest unit tests

* Sync up the Android build files with the CMakeLists.txt

Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Change-Id: I1675b0937fed7c74833e46af6d077ced57cf5bed

4 years agoIVGCVSW-4475 Update BuildGuideAndroidNDK.md
Narumol Prangnawarat [Fri, 21 Feb 2020 17:21:34 +0000 (17:21 +0000)]
IVGCVSW-4475 Update BuildGuideAndroidNDK.md

 * Remove export keyword

Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: If505923c8283a352a02956621074174f423adb07

4 years agoIVGCVSW-4456 Disable NEON PostDetectionProcess
James Conroy [Fri, 21 Feb 2020 16:52:44 +0000 (16:52 +0000)]
IVGCVSW-4456 Disable NEON PostDetectionProcess

* Reverting to CpuRef workload because it
  currently has better performance.
* Disabling NEON EndToEnd tests.

Signed-off-by: James Conroy <james.conroy@arm.com>
Change-Id: Idd5314e46c50581ef4bec24e391779188f20951b

4 years agoIVGCVSW-4307 Onnx Segfault Bug
Ryan OShea [Fri, 21 Feb 2020 12:33:17 +0000 (12:33 +0000)]
IVGCVSW-4307 Onnx Segfault Bug

 * Fixed ParseConstant
 * Fixed Exception
 * Fixed 0 dimension tensor
 * Add unit test to check addition as tensor and scalar
 * Change C++ style comments to Doxygen style

Signed-off-by: Ryan OShea <Ryan.OShea2@arm.com>
Change-Id: Ied7cbe2e11e713c23d87106d2db39e0eb446c920

4 years agoIVGCVSW-4475 Update BuildGuideAndroidNDK.md
Narumol Prangnawarat [Thu, 20 Feb 2020 16:34:36 +0000 (16:34 +0000)]
IVGCVSW-4475 Update BuildGuideAndroidNDK.md

 * Update TensorFlow version
 * Add export OpenCl and Mali library paths

Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: Ibbd166c3ff6dd93b925a84c5178b9e92280309d8

4 years agoIVGCVSW-4432 Update Readme for 20.02
Sadik Armagan [Thu, 20 Feb 2020 16:51:15 +0000 (16:51 +0000)]
IVGCVSW-4432 Update Readme for 20.02

Signed-off-by: Sadik Armagan <sadik.armagan@arm.com>
Change-Id: I416b39b0adac1410f854d3ec5b855044bd85e1cc

4 years agoIVGCVSW-4456 Fix MobileNet SSD perf regression
James Conroy [Thu, 20 Feb 2020 11:14:49 +0000 (11:14 +0000)]
IVGCVSW-4456 Fix MobileNet SSD perf regression

* Now use accelerated DetectionPostProcess
  NEON workload, originally was using vanilla
  version.

Change-Id: Ib64653801024a191f841d601932fa3c54baa5c3b
Signed-off-by: James Conroy <james.conroy@arm.com>
4 years agoCOMPMID-3062: Add ExecuteNetwork option to explicitly dequantize output
Georgios Pinitas [Tue, 18 Feb 2020 13:25:23 +0000 (13:25 +0000)]
COMPMID-3062: Add ExecuteNetwork option to explicitly dequantize output

Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com>
Change-Id: Ic7abe5dad700fbdc1b7cbab6936b52554f0a0360

4 years agoIVGCVSW-4472 Yolo v3 ExecuteNetwork failing
Keith Davis [Wed, 19 Feb 2020 10:08:33 +0000 (10:08 +0000)]
IVGCVSW-4472 Yolo v3 ExecuteNetwork failing

 * Add Debug workload for QAsymmS8/U8
 * Change Dequantize tests to test AsymmS8 instead of SymmS8
 * Fix incorrect supportedness within RefLayerSupport

Signed-off-by: Keith Davis <keith.davis@arm.com>
Change-Id: Ie51f1e33c564d46c86bf0150b1addda3fc093d13

4 years agoIVGCVSW-2232 Pack/Stack operator support in Tensorflow Parser
Sadik Armagan [Tue, 18 Feb 2020 15:18:27 +0000 (15:18 +0000)]
IVGCVSW-2232 Pack/Stack operator support in Tensorflow Parser

* Parser support and unit tests added for Stack opertor in TfParser

Signed-off-by: Sadik Armagan <sadik.armagan@arm.com>
Change-Id: I243b33fda2762180ef880458e760a54fde64f3d8

4 years agoIVGCVSW-4433 Update version number to 20.02
Nikhil Raj [Tue, 18 Feb 2020 16:36:49 +0000 (16:36 +0000)]
IVGCVSW-4433 Update version number to 20.02

Signed-off-by: Nikhil Raj <nikhil.raj@arm.com>
Change-Id: I06b4384312b14e6af8beb8a2903896c237b9c48d

4 years agoCOMPMID-3059: Add TF parser support for StridedSlice
Georgios Pinitas [Fri, 14 Feb 2020 14:46:51 +0000 (14:46 +0000)]
COMPMID-3059: Add TF parser support for StridedSlice

Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com>
Change-Id: I31f25f26a50c9054b5650b1be127c84194b56be7

4 years agoIVGCVSW-4436 Add ExecuteNetwork test for mobilenet_v2_int8
Keith Davis [Tue, 11 Feb 2020 16:51:50 +0000 (16:51 +0000)]
IVGCVSW-4436 Add ExecuteNetwork test for mobilenet_v2_int8

 * Add QAsymmS8 to QueueDescriptor supportedTypes
 * Add QSymmS8/QAsymmS8 to RefLayerSupport supportedTypes
 * Some additional comments and refactoring

Change-Id: I8567314452e6e8f6f69cb6e458ee147d3fc92fab
Signed-off-by: Keith Davis <keith.davis@arm.com>
4 years agoIVGCVSW-4403 Add standalone backend build steps to BuildGuideAndroidNDK
Narumol Prangnawarat [Mon, 17 Feb 2020 13:49:54 +0000 (13:49 +0000)]
IVGCVSW-4403 Add standalone backend build steps to BuildGuideAndroidNDK

Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: I339511938ca1356581ffac96baa642d4299d3240

4 years agoIVGCVSW-4340 Backend profiling: Add tests for Timeline functions
Colm Donelan [Thu, 13 Feb 2020 20:47:08 +0000 (20:47 +0000)]
IVGCVSW-4340 Backend profiling: Add tests for Timeline functions

* Add tests for the timeline functions that are part of
  IBackendProfiling: GetSendTimelinePacket & GetProfilingGuidGenerator
* Modify MockBackendProfilingService to store a
  MockBackendProfilingContext shared pointer.

Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Change-Id: I99fc4b1da019858b9f29409cd59ef8f590c0d3a2

4 years agoIVGCVSW-4320 Implement the bulk reporting of counter values from backends
Sadik Armagan [Mon, 17 Feb 2020 11:33:31 +0000 (11:33 +0000)]
IVGCVSW-4320 Implement the bulk reporting of counter values from backends

* Implemented unit test for ReportCounters function in BackendProfiling

Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Signed-off-by: Sadik Armagan <sadik.armagan@arm.com>
Change-Id: Iec342a96060c8ef6090e6cc67bda8a7a3e890c50

4 years agoUpdate ACL pin to 20.02 release branch
James Conroy [Mon, 17 Feb 2020 08:43:56 +0000 (08:43 +0000)]
Update ACL pin to 20.02 release branch

Signed-off-by: James Conroy <james.conroy@arm.com>
Change-Id: Ifc7fe6e6272155a250a649adc22beaa876996abb

4 years agoIVGCVSW-4320 Implement ReportCounters in BackendProfiling
Jim Flynn [Fri, 14 Feb 2020 10:18:08 +0000 (10:18 +0000)]
IVGCVSW-4320 Implement ReportCounters in BackendProfiling

Change-Id: Idd545079f6331bb4241709fa1534635f3fdf610b
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
4 years agoIVGCVSW-4420 Failing Unit Test Cl: Quantize layer
Keith Davis [Fri, 14 Feb 2020 12:22:40 +0000 (12:22 +0000)]
IVGCVSW-4420 Failing Unit Test Cl: Quantize layer

 * Fix bug with missing ValidateInputsOutputs in Cl Workload
 * Renamed data type tests to be more specific
 * Future proofing

Signed-off-by: Keith Davis <keith.davis@arm.com>
Change-Id: I157acc318e40d727fcfb3f36f7f577fc87472f3d

4 years agoIVGCVSW-4338 Implement the Activation of Counters in backends
Finn Williams [Wed, 12 Feb 2020 11:02:34 +0000 (11:02 +0000)]
IVGCVSW-4338 Implement the Activation of Counters in backends

Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: I4a2465f06e046f78242ff0a246c651638b205498

4 years agoIVGCVSW-4400 Backend Counter Registry Functionality
David Monahan [Wed, 12 Feb 2020 15:52:35 +0000 (15:52 +0000)]
IVGCVSW-4400 Backend Counter Registry Functionality

 * Adding BackendProfilingContext to the MockBackend
 * Made IBackendProfilingContext pure Virtual
 * Added UnitTest using MockBackend for testing Backend Counter Registration
 * Moved Registry of backend counters from Initialize() to AddBackendProfilingContext()
 * Added m_MaxGlobalCounterId to ProfilingService
 * Removed automatic registration of MockBack in BackendRegistry()

Signed-off-by: David Monahan <david.monahan@arm.com>
Change-Id: Ie1c6c31e56d1ac7079d6116ecad041961014aedc

4 years agoIVGCVSW-4403 Add standalone backend build steps to BuildGuideCrossCompilation
Narumol Prangnawarat [Tue, 11 Feb 2020 17:29:54 +0000 (17:29 +0000)]
IVGCVSW-4403 Add standalone backend build steps to BuildGuideCrossCompilation

Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: I424643294781fa91cb4f4209f6a5a384bb4e4759

4 years agoFix legacy ClTuner API
Derek Lamberti [Tue, 11 Feb 2020 12:56:52 +0000 (12:56 +0000)]
Fix legacy ClTuner API

Change-Id: Ib96446c753f7b794f5dc08cb9ff59888987cdf80
Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
4 years agoIVGCVSW-4403 Update readme for sample standalone dynamic backend
Narumol Prangnawarat [Tue, 11 Feb 2020 12:19:14 +0000 (12:19 +0000)]
IVGCVSW-4403 Update readme for sample standalone dynamic backend
             and remove standalone dynamic reference backend

Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: I33bc82d8b07450a9c3f6c5dc415eda8427aec57b

4 years agoSilence clang-8 warnings wrt explicit defaulting of implicitly deleted operator
Matthew Bentham [Mon, 10 Feb 2020 17:23:39 +0000 (17:23 +0000)]
Silence clang-8 warnings wrt explicit defaulting of implicitly deleted operator

Signed-off-by: Matthew Bentham <Matthew.Bentham@arm.com>
Change-Id: I9ff918e7f9fe340e65f8dd1b1c47754c8b41de1f

4 years agoUpdating armnn-arm_compute to arm_compute_library.
Mike Kelly [Tue, 11 Feb 2020 11:54:04 +0000 (11:54 +0000)]
Updating armnn-arm_compute to arm_compute_library.

Signed-off-by: Mike Kelly <mike.kelly@arm.com>
Change-Id: I7c608a75d0dbeb2f95df94440e23aecfa97bd93b

4 years agoIVGCVSW-4424 Set minimum timeout for SendThread in WaitingForAck state
Finn Williams [Mon, 10 Feb 2020 16:59:58 +0000 (16:59 +0000)]
IVGCVSW-4424 Set minimum timeout for SendThread in WaitingForAck state

Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: Iee7de5040e355933b7e14a39d44e9d51b30427c8

4 years agoIVGCVSW-4328 BufferManager running out of buffers crashes application
Sadik Armagan [Mon, 10 Feb 2020 12:24:15 +0000 (12:24 +0000)]
IVGCVSW-4328 BufferManager running out of buffers crashes application

* Refactored SendCounterPacket classes, separated SendCounterPacket from Send thread
* Created ISendThread.hpp, IConsumer, SendThread.hpp and SendThread.cpp
* Injected IConsumer to BufferManager to notify SendThread when packet is ready to read

Signed-off-by: Sadik Armagan <sadik.armagan@arm.com>
Change-Id: I80f0bb8b8401c6bfd1611f7760217c6fe35d7ad8

4 years agoIVGCVSW-4409 Fix TfLiteParser to handle all datatypes correctly
Ryan OShea [Fri, 7 Feb 2020 17:22:22 +0000 (17:22 +0000)]
IVGCVSW-4409 Fix TfLiteParser to handle all datatypes correctly

 * Added check for QAsymmS8 datatype for Per-Tensor quantization

Signed-off-by: Ryan OShea <Ryan.OShea2@arm.com>
Change-Id: I902aa3863dd5cefdce90e68be8a5750dd6ff9e54

4 years agoClean up header inclusion in CL workloads.
Matthew Bentham [Wed, 5 Feb 2020 21:39:55 +0000 (21:39 +0000)]
Clean up header inclusion in CL workloads.

Remove usage of CLFunctions.h and replace with specific header
for each function.

Signed-off-by: Matthew Bentham <Matthew.Bentham@arm.com>
Change-Id: I255a843b36a5dd8cf90a52786282192b8fe04f83

4 years agoSuppress warnings from OpenCL include folder.
Matthew Bentham [Wed, 5 Feb 2020 22:15:26 +0000 (22:15 +0000)]
Suppress warnings from OpenCL include folder.

Fixes an odd compiler warning with half.hpp when included
from ComputeLibrary/include directory.

Signed-off-by: Matthew Bentham <matthew.bentham@arm.com>
Change-Id: I17d251bb68384c357ffb93ea8e63333564aba659

4 years agoIVGCVSW-4400 Adding invocation of the back to Profiling Service initialisation
David Monahan [Fri, 7 Feb 2020 12:01:05 +0000 (12:01 +0000)]
IVGCVSW-4400 Adding invocation of the back to Profiling Service initialisation

Signed-off-by: David Monahan <david.monahan@arm.com>
Change-Id: I5f3bb4c9cde1cca11b8f6201ab559c2960eb32c0

4 years agoIVGCVSW-4319 Implement Counter Status Querying
James Conroy [Thu, 6 Feb 2020 18:34:52 +0000 (18:34 +0000)]
IVGCVSW-4319 Implement Counter Status Querying

* Adds implementations for GetCounterStatus and
  GetActiveCounters.
* Adds CheckCounterStatusQuery in ProfilingTests.
* Modifies Holder and ProfilingService to open
  up access to CaptureData for use by
  BackendProfiling.

Signed-off-by: James Conroy <james.conroy@arm.com>
Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Change-Id: Iec47952545c0072a71088b12ca3dc31673fa9c51

4 years agoIVGCVSW-4402 Modify the signature of CreateBackendProfilingContext
Narumol Prangnawarat [Mon, 10 Feb 2020 10:05:50 +0000 (10:05 +0000)]
IVGCVSW-4402 Modify the signature of CreateBackendProfilingContext
             as the signature in IBackendInternal is changed to remove const

Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: I773cbc36f49bde13e498a05399d55ca9b0343d31

4 years agoIVGCVSW-4386 Add ArmNN reference support for QAsymmS8
Ryan OShea [Fri, 7 Feb 2020 10:06:33 +0000 (10:06 +0000)]
IVGCVSW-4386 Add ArmNN reference support for QAsymmS8

 * Added Quantization Scheme for QAsymmS8
 * Added Unit Tests for QAsymmS8
 * Renamed QAsymm8 calls to QAsymmU8

Signed-off-by: Ryan OShea <Ryan.OShea2@arm.com>
Change-Id: I897b4e018ba1d808cc3f8c113f2be2dbad49c8db

4 years agoIVGCVSW-4402 add boost and armnn path to sample dynamic backend
Narumol Prangnawarat [Fri, 7 Feb 2020 10:28:31 +0000 (10:28 +0000)]
IVGCVSW-4402 add boost and armnn path to sample dynamic backend

Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: Ibeed3301352d8f15e144f8466d8a26b21c744b84

4 years agoIVGCVSW-4418 disable unused variable and parameter warning for Caffe protobuf cc
Narumol Prangnawarat [Fri, 7 Feb 2020 09:46:31 +0000 (09:46 +0000)]
IVGCVSW-4418 disable unused variable and parameter warning for Caffe protobuf cc

Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: I903b75276b0c98894d8116a3d244103a910efa63

4 years agoMLCE-139: add capability to align corners for bilinear resize
Sang-Hoon Park [Wed, 8 Jan 2020 10:25:24 +0000 (10:25 +0000)]
MLCE-139: add capability to align corners for bilinear resize

* Add parsing of the related parameter to TfLiteParser
* Update ResizeDescriptor to store the additional parameter
* Update NEON/CL workload to pass the additional parameter.
* Update Reference workload to pass and handle the additional parameter.

!ComputeLibrary:2538
!ComputeLibrary:2569
!armnn:2612

Signed-off-by: Sang-Hoon Park <sang-hoon.park@arm.com>
Change-Id: Id149e1c24c2abed7e9dd81939acf54dfabfcdfd2

4 years agoUpdate ACL pin to c971cf1034a61875c8e8c87d48634cbfac3865fd
Teresa Charlin [Fri, 7 Feb 2020 09:06:28 +0000 (09:06 +0000)]
Update ACL pin to c971cf1034a61875c8e8c87d48634cbfac3865fd

* COMPMID-3090: Fail NEON/ColorConvert/RGBtoU8

Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com>
Change-Id: I551e5a6e4d755a52e67298b94c44ede61c8431c0

4 years agoIVGCVSW-4317 Implement the Profiling Context Initialisation
Colm Donelan [Wed, 5 Feb 2020 17:48:59 +0000 (17:48 +0000)]
IVGCVSW-4317 Implement the Profiling Context Initialisation

* Call CreateBackendProfilingContext on each backend from Runtime passing
  an instance of the BackendProfiling interface.
* Modify the signature of CreateBackendProfilingContext to remove const
  and return a shared_ptr to BackendProfilingContext
* Add concrete BackendProfiling class.
* Store BackendProfilingContexts in Profiling service.

Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Change-Id: I975eaa2093ae91fa623835f65f9e5b25eb65117a

4 years agoUpdate ACL pin to 4bce11548268b9a10b0f06eff3cff9ae06d5b9dd
Kevin May [Thu, 6 Feb 2020 09:16:45 +0000 (09:16 +0000)]
Update ACL pin to 4bce11548268b9a10b0f06eff3cff9ae06d5b9dd

* COMPMID-3063: Address Custom Convolution failures

Signed-off-by: Kevin May <kevin.may@arm.com>
Change-Id: I9fce935d72aca67198ab381351828cd016c0c41d

4 years agoIVGCVSW-4404 Add libraries to sample dynamic backend for android
Narumol Prangnawarat [Tue, 4 Feb 2020 14:45:41 +0000 (14:45 +0000)]
IVGCVSW-4404 Add libraries to sample dynamic backend for android

 * Add Boost and armnn paths
 * Add CreateBackendProfilingContext, CreateWorkloadFactory,
   CreateBackendProfilingContext

Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: Ib36d751b15450a922c12895e292abafe06f9e7cf

4 years agoIVGCVSW-4389 Enable ClTuner in ClContextControl
Derek Lamberti [Tue, 4 Feb 2020 14:49:16 +0000 (14:49 +0000)]
IVGCVSW-4389 Enable ClTuner in ClContextControl

Change-Id: If169736c4523a92f9aa10eac13e320eb41088624
Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
4 years agoClean up header usage a bit in NEON backend
Matthew Bentham [Fri, 24 Jan 2020 23:11:43 +0000 (23:11 +0000)]
Clean up header usage a bit in NEON backend

Including NEFunctions.h is unnecessary and adds about a second
to compile time each translation unit in which it appears,
so we should use just the header file with the arm compute function
declarations that we need.

Signed-off-by: Matthew Bentham <matthew.bentham@arm.com>
Change-Id: I605d0eb82ccf2aafa35381a5d9d54337d3fe17a7

4 years agoBuild graph->inputIds/outputIds with layerBindingId instead of layerIndex
Tee Jung [Tue, 5 Nov 2019 10:48:25 +0000 (10:48 +0000)]
Build graph->inputIds/outputIds with layerBindingId instead of layerIndex

Signed-off-by: Jung Tae-young tee.ty.jung@openedges.com
Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Change-Id: I25ceeca70e72fad88ab039aed5a5ab6a7cc08c6c
Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
4 years agoGithub #273 Handle failure to initialise BackendContext in Runtime
Matthew Bentham [Tue, 4 Feb 2020 10:03:55 +0000 (10:03 +0000)]
Github #273 Handle failure to initialise BackendContext in Runtime

Define CreateBackendContext to throw BackendUnavailableException
if necessary runtime components are missing.

Handle this in the constructor of Runtime by not adding those
backends to the internal DeviceSpec owned by the Runtime.

Signed-off-by: Matthew Bentham <Matthew.Bentham@arm.com>
Change-Id: Iadffb5240e32e1f105683c4d361276b92d1e720c

4 years agoIVGCVSW-4390 Refactor QUANTIZE to make use of Decoder/Encoder types
Keith Davis [Tue, 4 Feb 2020 09:31:47 +0000 (09:31 +0000)]
IVGCVSW-4390 Refactor QUANTIZE to make use of Decoder/Encoder types

 * Fix bug where QSymmS8 is duplicated and F16 is missing

Signed-off-by: Keith Davis <keith.davis@arm.com>
Change-Id: I312815868e74a9dff913bac052f1a86585644098

4 years agoIVGCVSW-4365 Update ACL pin to 5c829cab49b0dcffd893065af05f0bf028e7a548
Teresa Charlin [Mon, 3 Feb 2020 18:15:00 +0000 (18:15 +0000)]
IVGCVSW-4365 Update ACL pin to 5c829cab49b0dcffd893065af05f0bf028e7a548
* Fix CTS for ArgMinMax

Change-Id: I61ac4f80550bc3cbf2e19af5e602e3070c43ea1d
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com>
4 years agoIVGCVSW-4399 Create Sample Dynamic backend
Narumol Prangnawarat [Mon, 3 Feb 2020 12:29:56 +0000 (12:29 +0000)]
IVGCVSW-4399 Create Sample Dynamic backend

 * Move IWorkload and WorkloadInfo to include/armnn/backends
 * Add simple sample dynamic backend with addition workload
 * Add sample example to run dynamic backend
 * Unit tests

Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: I0753ce35b8e8a6223a1471388b49246d82438a44

4 years agoIVGCVSW-4334 Wire Signed Quantized 8 bit type into ACL
Keith Davis [Mon, 3 Feb 2020 14:47:54 +0000 (14:47 +0000)]
IVGCVSW-4334 Wire Signed Quantized 8 bit type into ACL

 * Add QSymmS8 LayerSupport tests for all backends
 * Update BatchNormalization IsLayerSupport Bias' QSymmS8 case

Signed-off-by: Keith Davis <keith.davis@arm.com>
Change-Id: Ib66befe11f9df5956869eb80699fc415a4d3fa16

4 years agoIVGCVSW-4393 Register backend counters
Jim Flynn [Sun, 2 Feb 2020 12:52:59 +0000 (12:52 +0000)]
IVGCVSW-4393 Register backend counters

Signed-off-by: David Monahan <david.monahan@arm.com>
Change-Id: I419ecc2fce4b7e0fcaeb6d1f9cb687c0b660125d
Signed-off-by: Jim Flynn <jim.flynn@arm.com>