TR-mbed 1.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
Eigen::TensorAsyncDevice< ExpressionType, DeviceType, DoneCallback > Class Template Reference

Pseudo expression providing an operator = that will evaluate its argument asynchronously on the specified device. Currently only ThreadPoolDevice implements proper asynchronous execution, while the default and GPU devices just run the expression synchronously and call m_done() on completion.. More...

#include <TensorDevice.h>

Public Member Functions

 TensorAsyncDevice (const DeviceType &device, ExpressionType &expression, DoneCallback done)
 
template<typename OtherDerived >
EIGEN_STRONG_INLINE TensorAsyncDeviceoperator= (const OtherDerived &other)
 

Protected Attributes

const DeviceType & m_device
 
ExpressionType & m_expression
 
DoneCallback m_done
 

Detailed Description

template<typename ExpressionType, typename DeviceType, typename DoneCallback>
class Eigen::TensorAsyncDevice< ExpressionType, DeviceType, DoneCallback >

Pseudo expression providing an operator = that will evaluate its argument asynchronously on the specified device. Currently only ThreadPoolDevice implements proper asynchronous execution, while the default and GPU devices just run the expression synchronously and call m_done() on completion..

Example: auto done = []() { ... expression evaluation done ... }; C.device(thread_pool_device, std::move(done)) = A + B;

Constructor & Destructor Documentation

◆ TensorAsyncDevice()

template<typename ExpressionType , typename DeviceType , typename DoneCallback >
Eigen::TensorAsyncDevice< ExpressionType, DeviceType, DoneCallback >::TensorAsyncDevice ( const DeviceType &  device,
ExpressionType &  expression,
DoneCallback  done 
)
inline

Member Function Documentation

◆ operator=()

template<typename ExpressionType , typename DeviceType , typename DoneCallback >
template<typename OtherDerived >
EIGEN_STRONG_INLINE TensorAsyncDevice & Eigen::TensorAsyncDevice< ExpressionType, DeviceType, DoneCallback >::operator= ( const OtherDerived &  other)
inline

Member Data Documentation

◆ m_device

template<typename ExpressionType , typename DeviceType , typename DoneCallback >
const DeviceType& Eigen::TensorAsyncDevice< ExpressionType, DeviceType, DoneCallback >::m_device
protected

◆ m_done

template<typename ExpressionType , typename DeviceType , typename DoneCallback >
DoneCallback Eigen::TensorAsyncDevice< ExpressionType, DeviceType, DoneCallback >::m_done
protected

◆ m_expression

template<typename ExpressionType , typename DeviceType , typename DoneCallback >
ExpressionType& Eigen::TensorAsyncDevice< ExpressionType, DeviceType, DoneCallback >::m_expression
protected

The documentation for this class was generated from the following file: