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.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/core/helpers/Utils.h b/src/core/helpers/Utils.h
index d64eddb9aa..326dc962c7 100644
--- a/src/core/helpers/Utils.h
+++ b/src/core/helpers/Utils.h
@@ -50,30 +50,6 @@ inline Strides compute_strides(const ITensorInfo &info, T stride_x, Ts &&... fix
strides.set(i, shape[i - 1] * strides[i - 1]);
}
- size_t first_zero = std::distance(strides.begin(), std::find_if(strides.begin(), strides.end(), [](uint32_t val)
- {
- return val == 0U;
- }));
-
- if(first_zero > 0)
- {
- if(first_zero == 1)
- {
- strides.set(1, strides[0] * (shape[0] + info.padding().left + info.padding().right));
- ++first_zero;
- }
- else if(first_zero == 2)
- {
- strides.set(2, strides[1] * (shape[1] + info.padding().top + info.padding().bottom));
- ++first_zero;
- }
-
- for(size_t i = first_zero; i < Strides::num_max_dimensions; ++i)
- {
- strides.set(i, strides[first_zero - 1]);
- }
- }
-
return strides;
}