From b4d7eaef418bfda0b939c757b6206570f70aff8e Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Wed, 1 May 2019 14:44:27 +0100 Subject: IVGCVSW-3039 Unify BindingPointInfo declarations Change-Id: I3deb2b9a37e8a8f8f2ed93c64ed0656ae911e24c Signed-off-by: Jim Flynn --- .../test/ParserFlatbuffersSerializeFixture.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/armnnDeserializer/test/ParserFlatbuffersSerializeFixture.hpp') diff --git a/src/armnnDeserializer/test/ParserFlatbuffersSerializeFixture.hpp b/src/armnnDeserializer/test/ParserFlatbuffersSerializeFixture.hpp index 038cce4da2..fef2409074 100644 --- a/src/armnnDeserializer/test/ParserFlatbuffersSerializeFixture.hpp +++ b/src/armnnDeserializer/test/ParserFlatbuffersSerializeFixture.hpp @@ -203,8 +203,6 @@ void ParserFlatbuffersSerializeFixture::RunTest( const std::map>& inputData, const std::map>& expectedOutputData) { - using BindingPointInfo = std::pair; - auto ConvertBindingInfo = [](const armnnDeserializer::BindingPointInfo& bindingInfo) { return std::make_pair(bindingInfo.m_BindingId, bindingInfo.m_TensorInfo); @@ -214,7 +212,8 @@ void ParserFlatbuffersSerializeFixture::RunTest( armnn::InputTensors inputTensors; for (auto&& it : inputData) { - BindingPointInfo bindingInfo = ConvertBindingInfo(m_Parser->GetNetworkInputBindingInfo(layersId, it.first)); + armnn::BindingPointInfo bindingInfo = ConvertBindingInfo( + m_Parser->GetNetworkInputBindingInfo(layersId, it.first)); armnn::VerifyTensorInfoDataType(bindingInfo.second, ArmnnInputType); inputTensors.push_back({ bindingInfo.first, armnn::ConstTensor(bindingInfo.second, it.second.data()) }); } @@ -224,7 +223,8 @@ void ParserFlatbuffersSerializeFixture::RunTest( armnn::OutputTensors outputTensors; for (auto&& it : expectedOutputData) { - BindingPointInfo bindingInfo = ConvertBindingInfo(m_Parser->GetNetworkOutputBindingInfo(layersId, it.first)); + armnn::BindingPointInfo bindingInfo = ConvertBindingInfo( + m_Parser->GetNetworkOutputBindingInfo(layersId, it.first)); armnn::VerifyTensorInfoDataType(bindingInfo.second, ArmnnOutputType); outputStorage.emplace(it.first, MakeTensor(bindingInfo.second)); outputTensors.push_back( @@ -236,7 +236,8 @@ void ParserFlatbuffersSerializeFixture::RunTest( // Compare each output tensor to the expected values for (auto&& it : expectedOutputData) { - BindingPointInfo bindingInfo = ConvertBindingInfo(m_Parser->GetNetworkOutputBindingInfo(layersId, it.first)); + armnn::BindingPointInfo bindingInfo = ConvertBindingInfo( + m_Parser->GetNetworkOutputBindingInfo(layersId, it.first)); auto outputExpected = MakeTensor(bindingInfo.second, it.second); BOOST_TEST(CompareTensors(outputExpected, outputStorage[it.first])); } -- cgit v1.2.1