From 6e40454a6e6cc57c07c7340148657c985ca6c928 Mon Sep 17 00:00:00 2001 From: Eugene Zhulenev Date: Wed, 2 Oct 2019 11:06:02 -0700 Subject: Add beta to TensorContractionKernel and make memset optional --- .../CXX11/src/Tensor/TensorContractionThreadPool.h | 29 ++++++++++++++-------- 1 file changed, 18 insertions(+), 11 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h index 873db5efd..26c9fac17 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h @@ -904,14 +904,16 @@ struct TensorEvaluator void processBlock(Index block_idx, Index begin, Index end) { Scalar* buf = block_buffers[block_idx]; - ::memset(buf, 0, buffer_size_bytes); TENSOR_CONTRACTION_DISPATCH( evaluator->template evalGemmPartialWithoutOutputKernel, Alignment, -- cgit v1.2.3