mxnet
Static Public Attributes | List of all members
mshadow::expr::TypeCheck< Device, dim, DType, E > Struct Template Reference

template to do type check More...

#include <expr_engine-inl.h>

Collaboration diagram for mshadow::expr::TypeCheck< Device, dim, DType, E >:
Collaboration graph

Static Public Attributes

static const int kExpDim = ExpInfo<E>::kDim
 dimension of expression More...
 
static const bool kDevPass = (ExpInfo<E>::kDevMask & Device::kDevMask) != 0
 whether the expression device type matches More...
 
static const bool kMapPass = (kExpDim == 0 || kExpDim == dim) && kDevPass
 whether the expression can be mapped to expression of dim More...
 
static const bool kRedPass = (kExpDim > dim) && kDevPass
 whether the expression can be reduced to expression of dim More...
 

Detailed Description

template<typename Device, int dim, typename DType, typename E>
struct mshadow::expr::TypeCheck< Device, dim, DType, E >

template to do type check

Member Data Documentation

template<typename Device , int dim, typename DType , typename E >
const bool mshadow::expr::TypeCheck< Device, dim, DType, E >::kDevPass = (ExpInfo<E>::kDevMask & Device::kDevMask) != 0
static

whether the expression device type matches

template<typename Device , int dim, typename DType , typename E >
const int mshadow::expr::TypeCheck< Device, dim, DType, E >::kExpDim = ExpInfo<E>::kDim
static

dimension of expression

template<typename Device , int dim, typename DType , typename E >
const bool mshadow::expr::TypeCheck< Device, dim, DType, E >::kMapPass = (kExpDim == 0 || kExpDim == dim) && kDevPass
static

whether the expression can be mapped to expression of dim

template<typename Device , int dim, typename DType , typename E >
const bool mshadow::expr::TypeCheck< Device, dim, DType, E >::kRedPass = (kExpDim > dim) && kDevPass
static

whether the expression can be reduced to expression of dim


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