aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h
diff options
context:
space:
mode:
authorGravatar Eugene Zhulenev <ezhulenev@google.com>2019-09-24 16:54:36 -0700
committerGravatar Eugene Zhulenev <ezhulenev@google.com>2019-09-24 16:54:36 -0700
commitf35b9ab5102915a514abe4b36feed0e705f40972 (patch)
tree718039d30fb2aabca54dab323a400c1a55701573 /unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h
parentd38e6fbc27abe0c354ffe90928f6741c378e76e1 (diff)
Fix a bug in a packed block type in TensorContractionThreadPool
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h')
-rw-r--r--unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h4
1 files changed, 2 insertions, 2 deletions
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<const TensorContractionOp<Indices, LeftArgType, RightArgT
template <typename EvalCtx>
struct ThreadLocalBlocksAllocator</*pack_rhs=*/false, EvalCtx> {
static void allocate(EvalCtx& ctx, Blocks& blocks) {
- std::vector<RhsBlock> lhs_blocks;
+ std::vector<LhsBlock> lhs_blocks;
BlockMemHandle mem_handle = ctx.kernel_.allocateSlices(
ctx.device_,
/*num_lhs=*/ctx.gm_,
@@ -758,7 +758,7 @@ struct TensorEvaluator<const TensorContractionOp<Indices, LeftArgType, RightArgT
/*num_slices=*/1,
/*lhs_blocks=*/&lhs_blocks, /*rhs_blocks=*/nullptr);
- blocks = ThreadLocalBlocks<RhsBlock>(std::move(mem_handle),
+ blocks = ThreadLocalBlocks<LhsBlock>(std::move(mem_handle),
std::move(lhs_blocks));
}