libeblearn
ebl::msc_module< T, Tstate > Class Template Reference

#include <ebl_march.h>

Inheritance diagram for ebl::msc_module< T, Tstate >:
ebl::ms_module< T, Tstate > ebl::module_1_1< T, Tstate, Tstate > ebl::module

List of all members.

Public Member Functions

 msc_module (std::vector< module_1_1< T, Tstate > * > &pipes, uint nsize=1, uint stride=1, uint nsize2=0, const char *name="msc_module")
virtual ~msc_module ()
 Destructor.
virtual fidxdim fprop_size (fidxdim &i_size)
virtual fidxdim bprop_size (const fidxdim &o_size)
virtual mfidxdim bprop_size (mfidxdim &o_size)
virtual std::string describe ()
 Returns a string describing this module and its parameters.

Protected Member Functions

virtual void init_fprop (mstate< Tstate > &in, mstate< Tstate > &out)
 Prepare pipes and buffer for fprop.

Protected Attributes

uint nsize
uint stride
 Groups size.
uint nsize2
 Stride for regular groups.

Detailed Description

template<typename T, class Tstate = bbstate_idx<T>>
class ebl::msc_module< T, Tstate >

A "convolutional" version of ms_module, where pipes are applied to a set of inputs with a certain stride.


Constructor & Destructor Documentation

template<typename T , class Tstate >
ebl::msc_module< T, Tstate >::msc_module ( std::vector< module_1_1< T, Tstate > * > &  pipes,
uint  nsize = 1,
uint  stride = 1,
uint  nsize2 = 0,
const char *  name = "msc_module< T, Tstate >" 
)

Constructor a multi-state module where each state goes through one of 'pipes' pipe, and each pipe sees groups of 'nsize' inputs with stride 'stride'.

Parameters:
nsize2If non-zero, this defines the size of higher level groups of inputs, i.e. regular grouping will be applied to each of these higher groups individually.

Member Function Documentation

template<typename T , class Tstate >
fidxdim ebl::msc_module< T, Tstate >::bprop_size ( const fidxdim &  o_size) [virtual]

given the output dimensions, returns the input dimensions. the implementation of this method helps automatic scaling of input data but is optional.

Reimplemented from ebl::ms_module< T, Tstate >.

template<typename T , class Tstate >
mfidxdim ebl::msc_module< T, Tstate >::bprop_size ( mfidxdim &  o_size) [virtual]

Given the multi-output dimensions, returns the multi-input dimensions. the implementation of this method helps automatic scaling of input data but is optional.

Reimplemented from ebl::ms_module< T, Tstate >.

template<typename T , class Tstate >
fidxdim ebl::msc_module< T, Tstate >::fprop_size ( fidxdim &  i_size) [virtual]

given the input dimensions, modifies it to be compliant with module's architecture, and returns the output dimensions corresponding to modified input dimensions. the implementation of this method helps automatic scaling of input data but is optional.

Reimplemented from ebl::ms_module< T, Tstate >.


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