aboutsummaryrefslogtreecommitdiff
path: root/Utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Utils.cpp')
-rw-r--r--Utils.cpp6
1 files changed, 6 insertions, 0 deletions
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