aboutsummaryrefslogtreecommitdiff
path: root/src/core/helpers/Utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/helpers/Utils.h')
-rw-r--r--src/core/helpers/Utils.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/helpers/Utils.h b/src/core/helpers/Utils.h
index 2e7224c55b..a17a78f7ee 100644
--- a/src/core/helpers/Utils.h
+++ b/src/core/helpers/Utils.h
@@ -95,6 +95,18 @@ inline unsigned int get_next_power_two(unsigned int x)
/** Check if the tensor has any holes.
*
+ * A hole is defined as any gap in the tensor between two consecutive values. This can be a result of extending
+ * the paddings or manipulating the strides of the tensor
+ *
+ * @param[in] info Tensor info object defining the shape of the input tensor.
+ *
+ * @note This function checks for holes in all dimensions.
+ *
+ */
+bool has_holes(const ITensorInfo &info);
+
+/** Check if the tensor has any holes.
+ *
* @param[in] info Tensor info object defining the shape of the input tensor.
* @param[in] dimension Highest dimension to check.
*