aboutsummaryrefslogtreecommitdiff
path: root/src/backends/backendsCommon/test/GatherEndToEndTestImpl.hpp
diff options
context:
space:
mode:
authorTeresa Charlin <teresa.charlinreyes@arm.com>2020-06-29 16:27:03 +0100
committerTeresaARM <teresa.charlinreyes@arm.com>2020-07-01 08:26:47 +0000
commit526647333571169076f5e72c9fb18c71025bf7c0 (patch)
tree6dc559a7b0fae3705172b09a88fa552926652040 /src/backends/backendsCommon/test/GatherEndToEndTestImpl.hpp
parentcbd2c230b7ce5f26e2ccccf36b7ad450f6e1ad09 (diff)
downloadarmnn-526647333571169076f5e72c9fb18c71025bf7c0.tar.gz
IVGCVSW-4903 Connect axis parameter in Gather from android to ACL.
!android-nn-driver:3302 Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: Ifbc49acb5272f8a36719bb68676e44817190537d
Diffstat (limited to 'src/backends/backendsCommon/test/GatherEndToEndTestImpl.hpp')
-rw-r--r--src/backends/backendsCommon/test/GatherEndToEndTestImpl.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backends/backendsCommon/test/GatherEndToEndTestImpl.hpp b/src/backends/backendsCommon/test/GatherEndToEndTestImpl.hpp
index 1c97bef467..82f94512c3 100644
--- a/src/backends/backendsCommon/test/GatherEndToEndTestImpl.hpp
+++ b/src/backends/backendsCommon/test/GatherEndToEndTestImpl.hpp
@@ -1,5 +1,5 @@
//
-// Copyright © 2017 Arm Ltd. All rights reserved.
+// Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
@@ -19,9 +19,10 @@ armnn::INetworkPtr CreateGatherNetwork(const armnn::TensorInfo& paramsInfo,
{
armnn::INetworkPtr net(armnn::INetwork::Create());
+ armnn::GatherDescriptor descriptor;
armnn::IConnectableLayer* paramsLayer = net->AddInputLayer(0);
armnn::IConnectableLayer* indicesLayer = net->AddConstantLayer(armnn::ConstTensor(indicesInfo, indicesData));
- armnn::IConnectableLayer* gatherLayer = net->AddGatherLayer("gather");
+ armnn::IConnectableLayer* gatherLayer = net->AddGatherLayer(descriptor, "gather");
armnn::IConnectableLayer* outputLayer = net->AddOutputLayer(0, "output");
Connect(paramsLayer, gatherLayer, paramsInfo, 0, 0);
Connect(indicesLayer, gatherLayer, indicesInfo, 0, 1);