aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h
diff options
context:
space:
mode:
authorGravatar Eugene Zhulenev <ezhulenev@google.com>2018-09-11 13:32:32 -0700
committerGravatar Eugene Zhulenev <ezhulenev@google.com>2018-09-11 13:32:32 -0700
commit81b38a155adf5d527bce5c84cf90cd83c28da445 (patch)
tree8d0310b4b06a4667447ac7d0b4c66ebd16efb903 /unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h
parentc144bb355b74f4600156284e8202fcf9c0c135d8 (diff)
Fix compilation of tiled evaluation code with c++03
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h')
-rw-r--r--unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h
index 3d534eaa2..eeb2578fd 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h
@@ -771,11 +771,10 @@ struct TensorEvaluator<const TensorReductionOp<Op, Dims, ArgType, MakePointer_>,
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void getResourceRequirements(
std::vector<internal::TensorOpResourceRequirements>* resources) const {
- auto block_total_size_max = numext::maxi<Eigen::Index>(
+ Eigen::Index block_total_size_max = numext::maxi<Eigen::Index>(
1, m_device.lastLevelCacheSize() / sizeof(Scalar));
resources->push_back(internal::TensorOpResourceRequirements(
- internal::TensorBlockShapeType::kSkewedInnerDims,
- block_total_size_max));
+ internal::kSkewedInnerDims, block_total_size_max));
m_impl.getResourceRequirements(resources);
}