10 #ifndef EIGEN_CXX11_TENSOR_TENSOR_DEVICE_H
11 #define EIGEN_CXX11_TENSOR_TENSOR_DEVICE_H
29 template <
typename ExpressionType,
typename DeviceType>
class TensorDevice {
35 template<
typename OtherDerived>
39 internal::TensorExecutor<const Assign, DeviceType>::run(assign,
m_device);
43 template<
typename OtherDerived>
45 typedef typename OtherDerived::Scalar Scalar;
50 internal::TensorExecutor<const Assign, DeviceType>::run(assign,
m_device);
54 template<
typename OtherDerived>
56 typedef typename OtherDerived::Scalar Scalar;
61 internal::TensorExecutor<const Assign, DeviceType>::run(assign,
m_device);
84 template <
typename ExpressionType,
typename DeviceType,
typename DoneCallback>
91 template <
typename OtherDerived>
94 typedef internal::TensorExecutor<const Assign, DeviceType> Executor;
110 #ifdef EIGEN_USE_THREADS
111 template <
typename ExpressionType,
typename DoneCallback>
118 template <
typename OtherDerived>
120 typedef TensorAssignOp<ExpressionType, const OtherDerived> Assign;
121 typedef internal::TensorAsyncExecutor<const Assign, ThreadPoolDevice, DoneCallback> Executor;
#define EIGEN_DEFAULT_COPY_CONSTRUCTOR(CLASS)
Pseudo expression providing an operator = that will evaluate its argument asynchronously on the speci...
TensorAsyncDevice(const DeviceType &device, ExpressionType &expression, DoneCallback done)
const DeviceType & m_device
TensorAsyncDevice & operator=(const OtherDerived &other)
ExpressionType & m_expression
Pseudo expression providing an operator = that will evaluate its argument on the specified computing ...
TensorDevice & operator-=(const OtherDerived &other)
TensorDevice(const DeviceType &device, ExpressionType &expression)
TensorDevice & operator+=(const OtherDerived &other)
const DeviceType & m_device
TensorDevice & operator=(const OtherDerived &other)
ExpressionType & m_expression
: TensorContractionSycl.h, provides various tensor contraction kernel for SYCL backend