mxnet
Static Public Member Functions | List of all members
mshadow::red::sum Struct Reference

sum reducer More...

#include <base.h>

Collaboration diagram for mshadow::red::sum:
Collaboration graph

Static Public Member Functions

template<typename DType >
static MSHADOW_XINLINE void Reduce (volatile DType &dst, volatile DType src)
 do reduction into dst More...
 
template<typename DType >
static MSHADOW_XINLINE void Reduce (volatile DType &dst, volatile DType src, volatile DType &residual)
 do stable reduction into dst More...
 
template<typename DType >
static MSHADOW_XINLINE void Merge (volatile DType &dst_val, volatile DType &src_val)
 combine the results of two reducers More...
 
template<typename DType >
static MSHADOW_XINLINE void Merge (volatile DType &dst_val, volatile DType &dst_residual, volatile DType &src_val, volatile DType &src_residual)
 combine the results of two reducers More...
 
template<typename DType >
static MSHADOW_XINLINE void Finalize (volatile DType &dst)
 finalize reduction More...
 
template<typename DType >
static MSHADOW_XINLINE void Finalize (volatile DType &dst, volatile DType &residual)
 finalize reduction More...
 
template<typename DType >
static MSHADOW_XINLINE DType PartialGrad (DType redres, DType redsrc)
 calculate gradient of redres with respect to redsrc, redres: reduced result, redsrc: one of reduction element More...
 
template<typename DType >
static MSHADOW_XINLINE void SetInitValue (DType &initv)
 set the initial value during reduction More...
 
template<typename DType >
static MSHADOW_XINLINE void SetInitValue (DType &initv, DType &residual)
 set the initial value during reduction More...
 

Detailed Description

sum reducer

Member Function Documentation

template<typename DType >
static MSHADOW_XINLINE void mshadow::red::sum::Finalize ( volatile DType &  dst)
inlinestatic

finalize reduction

template<typename DType >
static MSHADOW_XINLINE void mshadow::red::sum::Finalize ( volatile DType &  dst,
volatile DType &  residual 
)
inlinestatic

finalize reduction

template<typename DType >
static MSHADOW_XINLINE void mshadow::red::sum::Merge ( volatile DType &  dst_val,
volatile DType &  src_val 
)
inlinestatic

combine the results of two reducers

template<typename DType >
static MSHADOW_XINLINE void mshadow::red::sum::Merge ( volatile DType &  dst_val,
volatile DType &  dst_residual,
volatile DType &  src_val,
volatile DType &  src_residual 
)
inlinestatic

combine the results of two reducers

template<typename DType >
static MSHADOW_XINLINE DType mshadow::red::sum::PartialGrad ( DType  redres,
DType  redsrc 
)
inlinestatic

calculate gradient of redres with respect to redsrc, redres: reduced result, redsrc: one of reduction element

template<typename DType >
static MSHADOW_XINLINE void mshadow::red::sum::Reduce ( volatile DType &  dst,
volatile DType  src 
)
inlinestatic

do reduction into dst

template<typename DType >
static MSHADOW_XINLINE void mshadow::red::sum::Reduce ( volatile DType &  dst,
volatile DType  src,
volatile DType &  residual 
)
inlinestatic

do stable reduction into dst

template<typename DType >
static MSHADOW_XINLINE void mshadow::red::sum::SetInitValue ( DType &  initv)
inlinestatic

set the initial value during reduction

template<typename DType >
static MSHADOW_XINLINE void mshadow::red::sum::SetInitValue ( DType &  initv,
DType &  residual 
)
inlinestatic

set the initial value during reduction


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