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

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

Protected Attributes

const DeviceType & m_device
 
DoneCallback m_done
 
ExpressionType & m_expression
 

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;

Definition at line 83 of file TensorDevice.h.

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

Definition at line 85 of file TensorDevice.h.

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

Definition at line 90 of file TensorDevice.h.

Member Data Documentation

◆ m_device

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

Definition at line 102 of file TensorDevice.h.

◆ m_done

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

Definition at line 104 of file TensorDevice.h.

◆ m_expression

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

Definition at line 103 of file TensorDevice.h.


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


gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:46:54