From 97c0c5d485ddec0369326825a41db48d8505cf4c Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Tue, 22 Oct 2019 12:42:44 -0700 Subject: Add block evaluation V2 to TensorAsyncExecutor. Add async evaluation to a number of ops. --- unsupported/Eigen/CXX11/src/Tensor/TensorBase.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorBase.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h b/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h index a951bea6d..7aa98fac6 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h @@ -1129,16 +1129,11 @@ class TensorBase : public TensorBase { return TensorDevice(dev, derived()); } -#ifdef EIGEN_USE_THREADS // Select the async device on which to evaluate the expression. template - typename internal::enable_if< - internal::is_same::value, - TensorAsyncDevice>::type - device(const DeviceType& dev, DoneCallback done) { + TensorAsyncDevice device(const DeviceType& dev, DoneCallback done) { return TensorAsyncDevice(dev, derived(), std::move(done)); } -#endif // EIGEN_USE_THREADS protected: EIGEN_DEVICE_FUNC -- cgit v1.2.3