diff options
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h b/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h index 4f72156a4..0fb0a9227 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h @@ -592,8 +592,8 @@ class TensorAsyncExecutor<Expression, ThreadPoolDevice, DoneCallback, : evaluator(expr, thread_pool), on_done(std::move(done)) {} ~TensorAsyncExecutorContext() { - on_done(); evaluator.cleanup(); + on_done(); } Evaluator evaluator; @@ -674,9 +674,9 @@ class TensorAsyncExecutor<Expression, ThreadPoolDevice, DoneCallback, on_done(std::move(done)) {} ~TensorAsyncExecutorContext() { - on_done(); device.deallocate(tiling.buffer); evaluator.cleanup(); + on_done(); } const ThreadPoolDevice& device; @@ -755,9 +755,9 @@ class TensorAsyncExecutor<Expression, ThreadPoolDevice, DoneCallback, on_done(std::move(done)) {} ~TensorAsyncExecutorContext() { - on_done(); device.deallocate(tiling.buffer); evaluator.cleanup(); + on_done(); } const ThreadPoolDevice& device; |