aboutsummaryrefslogtreecommitdiff
path: root/ModelToINetworkConverter.cpp
diff options
context:
space:
mode:
authorFinn Williams <Finn.Williams@arm.com>2021-06-25 12:53:09 +0100
committerFinn Williams <Finn.Williams@arm.com>2021-06-25 13:14:45 +0100
commitf769f292ba506784c8d21d691de821f4e3b53fec (patch)
tree786c90044689299d84962b263120cc3ca8ca41b7 /ModelToINetworkConverter.cpp
parentd27c13b273f265dc5dffd803728d6f913679834e (diff)
downloadandroid-nn-driver-f769f292ba506784c8d21d691de821f4e3b53fec.tar.gz
IVGCVSW-6178 Add additional compiler warnings to the driver
Signed-off-by: Finn Williams <Finn.Williams@arm.com> Change-Id: I2209251736a095583fffc8da774188e0dccfc932
Diffstat (limited to 'ModelToINetworkConverter.cpp')
-rw-r--r--ModelToINetworkConverter.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/ModelToINetworkConverter.cpp b/ModelToINetworkConverter.cpp
index 41716b0f..4665ef16 100644
--- a/ModelToINetworkConverter.cpp
+++ b/ModelToINetworkConverter.cpp
@@ -95,7 +95,6 @@ void ModelToINetworkConverter<HalPolicy>::Convert()
ALOGV("ModelToINetworkConverter::Convert(): getMainModel(m_Model).operands[inputIndex];");
const HalOperand& operand = getMainModel(m_Model).operands[inputIndex];
ALOGV("ModelToINetworkConverter::Convert(): GetTensorInfoForOperand(operand)");
- const armnn::TensorInfo& tensor = GetTensorInfoForOperand(operand);
const std::string layerName = "Input_" + std::to_string(i);
ALOGV("ModelToINetworkConverter::Convert(): m_Data.m_Network->AddInputLayer(i, layerName.c_str())");
armnn::IConnectableLayer* layer = m_Data.m_Network->AddInputLayer(i, layerName.c_str());
@@ -192,8 +191,6 @@ void ModelToINetworkConverter<HalPolicy>::Convert()
{
// outputs in android nn are represented by operands
uint32_t outputIndex = getMainModel(m_Model).outputIndexes[i];
- const HalOperand& operand = getMainModel(m_Model).operands[outputIndex];
- const armnn::TensorInfo& tensor = GetTensorInfoForOperand(operand);
const std::string layerName = "Output_" + std::to_string(i);
armnn::IConnectableLayer* layer = m_Data.m_Network->AddOutputLayer(i, layerName.c_str());