aboutsummaryrefslogtreecommitdiff
path: root/src/armnnUtils
diff options
context:
space:
mode:
authorjimfly01 <jim.flynn@arm.com>2018-10-08 14:43:01 +0100
committerMatthew Bentham <matthew.bentham@arm.com>2018-10-10 16:16:58 +0100
commit6b0b53d307f956c3d67429f2a93df91f2eb2f483 (patch)
treefcc03458f6396d9b9bee55674ca5af562ed5a16b /src/armnnUtils
parent0d9d4193200e8bfbaf4cb8f32c866d5fe73a3e7e (diff)
downloadarmnn-6b0b53d307f956c3d67429f2a93df91f2eb2f483.tar.gz
IVGCVSW-1929: Fix for this defect (QASYM8 no scale)
* Now hand in an optional vector of strings to Optimize function in which errors/warning messages are placed. * Optimize function changed to check outputs of each layer. If they are Quantized 8 bit but the scale has not been set an error message is added for each such output. * Unit test modelled on defect report added to exercise the fix. !android-nn-driver:152483 Change-Id: If9901f5324a516f1ab62858266b38f98dae16201
Diffstat (limited to 'src/armnnUtils')
-rw-r--r--src/armnnUtils/ParserPrototxtFixture.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/armnnUtils/ParserPrototxtFixture.hpp b/src/armnnUtils/ParserPrototxtFixture.hpp
index 89b823a169..c502ad9619 100644
--- a/src/armnnUtils/ParserPrototxtFixture.hpp
+++ b/src/armnnUtils/ParserPrototxtFixture.hpp
@@ -101,7 +101,8 @@ void ParserPrototxtFixture<TParser>::Setup(const std::map<std::string, armnn::Te
armnn::INetworkPtr network =
m_Parser->CreateNetworkFromString(m_Prototext.c_str(), inputShapes, requestedOutputs);
- auto optimized = Optimize(*network, { runtime.second, armnn::Compute::CpuRef }, runtime.first->GetDeviceSpec());
+ auto optimized = Optimize(*network,
+ { runtime.second, armnn::Compute::CpuRef }, runtime.first->GetDeviceSpec());
armnn::Status ret = runtime.first->LoadNetwork(m_NetworkIdentifier, move(optimized), errorMessage);
if (ret != armnn::Status::Success)
{
@@ -122,7 +123,8 @@ void ParserPrototxtFixture<TParser>::Setup()
armnn::INetworkPtr network =
m_Parser->CreateNetworkFromString(m_Prototext.c_str());
- auto optimized = Optimize(*network, { runtime.second, armnn::Compute::CpuRef }, runtime.first->GetDeviceSpec());
+ auto optimized = Optimize(*network,
+ { runtime.second, armnn::Compute::CpuRef }, runtime.first->GetDeviceSpec());
armnn::Status ret = runtime.first->LoadNetwork(m_NetworkIdentifier, move(optimized), errorMessage);
if (ret != armnn::Status::Success)
{