aboutsummaryrefslogtreecommitdiff
path: root/ModelToINetworkConverter.cpp
diff options
context:
space:
mode:
authorMatthew Bentham <matthew.bentham@arm.com>2019-05-03 15:49:14 +0100
committerMatteo Martincigh <matteo.martincigh@arm.com>2019-05-07 07:54:08 +0000
commit912b36224f19952663ebd3edc2a69d9031662fd1 (patch)
treeb84bdf384a6a9866336cfe5db7a613a4fc96d03c /ModelToINetworkConverter.cpp
parent856d1c9c9b0b1609282c4f797cbafefc6531240d (diff)
downloadandroid-nn-driver-912b36224f19952663ebd3edc2a69d9031662fd1.tar.gz
IVGCVSW-2911 Work towards compatibility with Q
Explicitly use HAL V1_0 Operand, OperandType, and IPreparedModelCallback Change-Id: If6aa6e9dc1bd0b7673ec247ac3560e7f072ef699 Signed-off-by: Matthew Bentham <matthew.bentham@arm.com>
Diffstat (limited to 'ModelToINetworkConverter.cpp')
-rw-r--r--ModelToINetworkConverter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ModelToINetworkConverter.cpp b/ModelToINetworkConverter.cpp
index fccd7594..2a79a279 100644
--- a/ModelToINetworkConverter.cpp
+++ b/ModelToINetworkConverter.cpp
@@ -68,7 +68,7 @@ void ModelToINetworkConverter<HalPolicy>::Convert()
{
// inputs in android nn are represented by operands
uint32_t inputIndex = m_Model.inputIndexes[i];
- const Operand& operand = m_Model.operands[inputIndex];
+ const V1_0::Operand& operand = m_Model.operands[inputIndex];
const armnn::TensorInfo& tensor = GetTensorInfoForOperand(operand);
armnn::IConnectableLayer* layer = m_Data.m_Network->AddInputLayer(i);
@@ -137,7 +137,7 @@ void ModelToINetworkConverter<HalPolicy>::Convert()
{
// outputs in android nn are represented by operands
uint32_t outputIndex = m_Model.outputIndexes[i];
- const Operand& operand = m_Model.operands[outputIndex];
+ const V1_0::Operand& operand = m_Model.operands[outputIndex];
const armnn::TensorInfo& tensor = GetTensorInfoForOperand(operand);
armnn::IConnectableLayer* layer = m_Data.m_Network->AddOutputLayer(i);