aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h
diff options
context:
space:
mode:
authorGravatar Eugene Zhulenev <ezhulenev@google.com>2019-09-13 14:29:55 -0700
committerGravatar Eugene Zhulenev <ezhulenev@google.com>2019-09-13 14:29:55 -0700
commitbf8866b46691c0db86fa48134dd8c9ce69f80b89 (patch)
tree38fff96d1e7d66247d0fb8a7495f73901302fd51 /unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h
parent553caeb6a3bb545aef895f8fc9f219be44679017 (diff)
Fix maybe-unitialized warnings 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 6b1a6ba85..ba3a80f97 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h
@@ -679,10 +679,10 @@ struct TensorEvaluator<const TensorContractionOp<Indices, LeftArgType, RightArgT
// Reuse pre-allocated thread local buffers.
BlockType* thread_local_pre_allocated_base_ = nullptr;
- size_t grain_size_;
+ size_t grain_size_ = 0;
// These will be initialized only if `is_pre_allocated == false`.
- BlockMemHandle mem_handle_;
+ BlockMemHandle mem_handle_{};
std::vector<BlockType> blocks_;
};