aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/test/GraphTests.cpp
diff options
context:
space:
mode:
authorTeresa Charlin <teresa.charlinreyes@arm.com>2022-08-30 14:27:10 +0100
committerTeresaARM <teresa.charlinreyes@arm.com>2022-09-06 10:21:44 +0000
commitd1628bffe27db398ff5c67c2e20f89e729f8bc31 (patch)
tree80e5a72505f98689d941cdf4c7bdef0db00d255d /src/armnn/test/GraphTests.cpp
parent48f9d5db00a245d08317130b10171337df0c1142 (diff)
downloadarmnn-d1628bffe27db398ff5c67c2e20f89e729f8bc31.tar.gz
IVGCVSW-7006 Remove deprecated code due to be removed in 22.08
* AddConv and AddDWConv with weights and bias * ResizeBilinearDescriptor * b,blacklist option in accuracy tool !android-nn-driver:8172 Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: Ibbc04fd18be7f938b11590bf67cd7af103cb4d99
Diffstat (limited to 'src/armnn/test/GraphTests.cpp')
-rw-r--r--src/armnn/test/GraphTests.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/armnn/test/GraphTests.cpp b/src/armnn/test/GraphTests.cpp
index 95421c5683..eea7ae824a 100644
--- a/src/armnn/test/GraphTests.cpp
+++ b/src/armnn/test/GraphTests.cpp
@@ -632,13 +632,13 @@ TEST_CASE("IConnectableLayerConstantTensorsByRef")
TensorInfo weightsInfo = constInfo;
ConstTensor weights(weightsInfo, weightData);
DepthwiseConvolution2dDescriptor desc;
- ARMNN_NO_DEPRECATE_WARN_BEGIN
- // GetConstantTensorsByRef() returns {m_Weights, m_Bias} so we need to use the old AddDepthwiseConvolution2dLayer()
- const auto depthwiseLayer = net->AddDepthwiseConvolution2dLayer(desc, weights, EmptyOptional(), "Depthwise");
- ARMNN_NO_DEPRECATE_WARN_END
- const void* resultData = depthwiseLayer->GetConstantTensorsByRef()[0].get()->GetConstTensor<void>();
- auto resultValue = reinterpret_cast<const uint8_t*>(resultData);
- CHECK(resultValue[0] == 3);
+
+ const auto weightsLayer = net->AddConstantLayer(weights);
+
+ const void* resultDataWeights = weightsLayer->GetConstantTensorsByRef()[0].get()->GetConstTensor<void>();
+ auto resultValueWeights = reinterpret_cast<const uint8_t*>(resultDataWeights);
+ CHECK(resultValueWeights[0] == 3);
+
}
}