From 573a8fa04ef0774fe44a4ac6669582a6bf753d6e Mon Sep 17 00:00:00 2001 From: Aron Virginas-Tar Date: Tue, 23 Jul 2019 14:01:37 +0100 Subject: IVGCVSW-3553 Fix failing zero_sized tests Signed-off-by: Aron Virginas-Tar Change-Id: Idd10f34babc0d2552d599872b853ba5fb5c98351 --- 1.0/HalPolicy.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to '1.0') diff --git a/1.0/HalPolicy.cpp b/1.0/HalPolicy.cpp index 8c617001..a2c8252a 100644 --- a/1.0/HalPolicy.cpp +++ b/1.0/HalPolicy.cpp @@ -9,6 +9,7 @@ #include "FullyConnected.hpp" #include "OutputShapeUtils.hpp" +#include "Utils.hpp" namespace armnn_driver { @@ -397,7 +398,7 @@ bool HalPolicy::ConvertDequantize(const Operation& operation, const Model& model } armnn::TensorInfo outputInfo = GetTensorInfoForOperand(*outputOperand); - if (IsDynamicOutput(outputInfo)) + if (IsDynamicTensor(outputInfo)) { ALOGD("Output shape not set, will infer from input"); outputInfo.SetShape(input.GetTensorInfo().GetShape()); @@ -477,7 +478,7 @@ bool HalPolicy::ConvertFullyConnected(const Operation& operation, const Model& m const armnn::TensorInfo& inputInfo = input.GetTensorInfo(); armnn::TensorInfo outputInfo = GetTensorInfoForOperand(*output); - if (IsDynamicOutput(outputInfo)) + if (IsDynamicTensor(outputInfo)) { ALOGD("Output shape not set, will infer from inputs"); outputInfo.SetShape(inputInfo.GetShape()); @@ -1004,7 +1005,7 @@ bool HalPolicy::ConvertL2Normalization(const Operation& operation, const Model& const armnn::TensorInfo& inputInfo = input.GetTensorInfo(); armnn::TensorInfo outputInfo = GetTensorInfoForOperand(*output); - if (IsDynamicOutput(outputInfo)) + if (IsDynamicTensor(outputInfo)) { ALOGD("Output shape not set, will infer from inputs"); outputInfo.SetShape(inputInfo.GetShape()); @@ -1147,7 +1148,7 @@ bool HalPolicy::ConvertSoftmax(const Operation& operation, const Model& model, C } armnn::TensorInfo outputInfo = GetTensorInfoForOperand(*outputOperand); - if (IsDynamicOutput(outputInfo)) + if (IsDynamicTensor(outputInfo)) { ALOGD("Output shape not set, will infer from input"); outputInfo.SetShape(input.GetTensorInfo().GetShape()); -- cgit v1.2.1