From 0d2a14ce11c85abdfc68ca37fc66e3cace088b24 Mon Sep 17 00:00:00 2001 From: Eugene Zhulenev Date: Wed, 16 Oct 2019 17:14:37 -0700 Subject: Cleanup Tensor block destination and materialized block storage allocation --- unsupported/Eigen/CXX11/src/Tensor/TensorAssign.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorAssign.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorAssign.h b/unsupported/Eigen/CXX11/src/Tensor/TensorAssign.h index f2b9389c8..1f64de3a9 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorAssign.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorAssign.h @@ -235,11 +235,9 @@ struct TensorEvaluator, Device> m_leftImpl.data() != NULL) { // If destination has raw data access, we pass it as a potential // destination for a block descriptor evaluation. - desc.AddDestinationBuffer( + desc.template AddDestinationBuffer( /*dst_base=*/m_leftImpl.data() + desc.offset(), - /*dst_strides=*/internal::strides(m_leftImpl.dimensions()), - /*total_dst_bytes=*/ - (internal::array_prod(m_leftImpl.dimensions()) * sizeof(Scalar))); + /*dst_strides=*/internal::strides(m_leftImpl.dimensions())); } RightTensorBlock block = m_rightImpl.blockV2(desc, scratch, /*root_of_expr_ast=*/true); -- cgit v1.2.3