aboutsummaryrefslogtreecommitdiff
path: root/Utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Utils.cpp')
-rw-r--r--Utils.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Utils.cpp b/Utils.cpp
index db1b6e68..77575d70 100644
--- a/Utils.cpp
+++ b/Utils.cpp
@@ -577,6 +577,11 @@ bool IsDynamicTensor(const armnn::TensorInfo& tensorInfo)
{
return true;
}
+ // Account for the usage of the TensorShape empty constructor
+ if (tensorInfo.GetNumDimensions() == 0)
+ {
+ return true;
+ }
return !tensorInfo.GetShape().AreAllDimensionsSpecified();
}