diff options
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h | 4 |
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_; }; |