From f35b9ab5102915a514abe4b36feed0e705f40972 Mon Sep 17 00:00:00 2001 From: Eugene Zhulenev Date: Tue, 24 Sep 2019 16:54:36 -0700 Subject: Fix a bug in a packed block type in TensorContractionThreadPool --- unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h | 4 ++-- 1 file changed, 2 insertions(+), 2 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 0f091b42f..873db5efd 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h @@ -750,7 +750,7 @@ struct TensorEvaluator struct ThreadLocalBlocksAllocator { static void allocate(EvalCtx& ctx, Blocks& blocks) { - std::vector lhs_blocks; + std::vector lhs_blocks; BlockMemHandle mem_handle = ctx.kernel_.allocateSlices( ctx.device_, /*num_lhs=*/ctx.gm_, @@ -758,7 +758,7 @@ struct TensorEvaluator(std::move(mem_handle), + blocks = ThreadLocalBlocks(std::move(mem_handle), std::move(lhs_blocks)); } -- cgit v1.2.3