aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/reference/Col2Im.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/validation/reference/Col2Im.cpp')
-rw-r--r--tests/validation/reference/Col2Im.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/validation/reference/Col2Im.cpp b/tests/validation/reference/Col2Im.cpp
index 90e488f928..53969d4725 100644
--- a/tests/validation/reference/Col2Im.cpp
+++ b/tests/validation/reference/Col2Im.cpp
@@ -40,7 +40,7 @@ SimpleTensor<T> col2im(const SimpleTensor<T> &src, const TensorShape &dst_shape,
SimpleTensor<T> dst{ dst_shape, src.data_type(), 1 };
// Compute reference
- const size_t batches = dst_shape[3];
+ const size_t batches = dst_shape.total_size() / (dst_shape.x() * dst_shape.y() * dst_shape.z());
const size_t src_width = src.shape().x();
const size_t src_height = src.shape().y();