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 --- Utils.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Utils.cpp') diff --git a/Utils.cpp b/Utils.cpp index c3c6310b..d3d62a02 100644 --- a/Utils.cpp +++ b/Utils.cpp @@ -328,4 +328,10 @@ void DumpJsonProfilingIfRequired(bool gpuProfilingEnabled, profiler->Print(fileStream); } +bool IsDynamicTensor(const armnn::TensorInfo& outputInfo) +{ + // Dynamic tensors have at least one 0-sized dimension + return outputInfo.GetNumElements() == 0u; +} + } // namespace armnn_driver -- cgit v1.2.1