diff options
author | Nikhil Raj <nikhil.raj@arm.com> | 2022-11-24 13:12:36 +0000 |
---|---|---|
committer | TeresaARM <teresa.charlinreyes@arm.com> | 2022-12-05 22:53:27 +0000 |
commit | 369d8fcd93213e37781a58fb9805a59bf14691db (patch) | |
tree | 8d6e7d90c24aaa171d2d0f6573863db6764418f9 /src/backends/reference/RefLayerSupport.cpp | |
parent | d71ae44704fcbae27d2224e86cf1ccb638cb7321 (diff) | |
download | armnn-369d8fcd93213e37781a58fb9805a59bf14691db.tar.gz |
IVGCVSW-4926 Add support in CpuRef implementation for Gather for axis different to 0
!android-nn-driver:8727
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com>
Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com>
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com>
Change-Id: I4336007ad5a8552f7893ce6253f93cf9d1f5474f
Diffstat (limited to 'src/backends/reference/RefLayerSupport.cpp')
-rw-r--r-- | src/backends/reference/RefLayerSupport.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/backends/reference/RefLayerSupport.cpp b/src/backends/reference/RefLayerSupport.cpp index 669c91d628..a5015a7376 100644 --- a/src/backends/reference/RefLayerSupport.cpp +++ b/src/backends/reference/RefLayerSupport.cpp @@ -1,5 +1,5 @@ // -// Copyright © 2017 Arm Ltd and Contributors. All rights reserved. +// Copyright © 2017,2022 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // @@ -1573,11 +1573,7 @@ bool RefLayerSupport::IsGatherSupported(const armnn::TensorInfo& input0, DataType::Signed32 }; - if (descriptor.m_Axis != 0) - { - reasonIfUnsupported.value() += std::string("Reference Gather: axis not supported\n"); - supported &= false; - } + IgnoreUnused(descriptor); supported &= CheckSupportRule(TypeAnyOf(input0, supportedTypes), reasonIfUnsupported, "Reference Gather: input type not supported"); |