aboutsummaryrefslogtreecommitdiff
path: root/src/core/helpers/Utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/helpers/Utils.cpp')
-rw-r--r--src/core/helpers/Utils.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/helpers/Utils.cpp b/src/core/helpers/Utils.cpp
index 6ca29d180d..f8895d8a3c 100644
--- a/src/core/helpers/Utils.cpp
+++ b/src/core/helpers/Utils.cpp
@@ -25,6 +25,11 @@
namespace arm_compute
{
+bool has_holes(const ITensorInfo &info)
+{
+ return has_holes(info, info.num_dimensions() - 1);
+}
+
bool has_holes(const ITensorInfo &info, size_t dimension)
{
const auto &shape = info.tensor_shape();