libeblearn
|
This module connects inputs and outputs with a connection table. More...
#include <ebl_arch.h>
Public Member Functions | |
table_module (vector< intg > &inputs, intg total, const char *name="table_module") | |
virtual | ~table_module () |
Destructor. | |
virtual void | fprop (mstate< Tstate > &in, mstate< Tstate > &out) |
virtual void | bprop (mstate< Tstate > &in, mstate< Tstate > &out) |
virtual void | bbprop (mstate< Tstate > &in, mstate< Tstate > &out) |
virtual std::string | describe () |
Returns a string describing this module and its parameters. | |
virtual table_module< T, Tstate > * | copy () |
Returns a deep copy of current module. | |
virtual mfidxdim | fprop_size (mfidxdim &isize) |
virtual mfidxdim | bprop_size (mfidxdim &osize) |
Protected Attributes | |
vector< intg > | table |
List of inputs indices. | |
intg | total |
Total number of inputs. |
This module connects inputs and outputs with a connection table.
ebl::table_module< T, Tstate >::table_module | ( | vector< intg > & | inputs, |
intg | total, | ||
const char * | name = "table_module< T, Tstate >" |
||
) |
Outputs will be the inputs arranged according to the list of input indices 'inputs'.
mfidxdim ebl::table_module< T, Tstate >::bprop_size | ( | mfidxdim & | osize | ) | [virtual] |
Returns input dimensions corresponding to multiple output dimensions 'osize'. Implementation of this method helps automatic scaling of input data but is optional.
Reimplemented from ebl::module_1_1< T, Tstate, Tstate >.
mfidxdim ebl::table_module< T, Tstate >::fprop_size | ( | mfidxdim & | isize | ) | [virtual] |
Modifies multi-input dimensions 'isize' to be compliant with module's architecture, and returns corresponding output dimensions. Implementation of this method helps automatic scaling of input data but is optional.
Reimplemented from ebl::module_1_1< T, Tstate, Tstate >.