libeblearn
|
#include <ebl_march.h>
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. |
A "convolutional" version of ms_module, where pipes are applied to a set of inputs with a certain stride.
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'.
nsize2 | If 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. |
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 >.
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 >.
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 >.