From 3ffb4e50df498182a624ab37bb50f55407b02f8f Mon Sep 17 00:00:00 2001 From: Charles Schlosser Date: Tue, 24 Sep 2024 16:58:49 +0000 Subject: [PATCH] fix implicit conversion in TensorChipping --- unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h b/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h index f5172cd8d..5db563d60 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h @@ -177,7 +177,7 @@ struct TensorEvaluator, Device> { // Check if chipping is effectively inner or outer: products of dimensions // before or after the chipped dimension is `1`. Index after_chipped_dim_product = 1; - for (int i = m_dim.actualDim() + 1; i < NumInputDims; ++i) { + for (int i = static_cast(m_dim.actualDim()) + 1; i < NumInputDims; ++i) { after_chipped_dim_product *= input_dims[i]; }