libeblearn
|
#include <ebl_march.h>
Public Member Functions | |
s2m_module (uint nstates, const char *name="s2m_module") | |
virtual void | fprop (Tin &in, mstate< Tout > &out) |
virtual void | bprop (Tin &in, mstate< Tout > &out) |
virtual void | bbprop (Tin &in, mstate< Tout > &out) |
virtual mfidxdim | bprop_size (mfidxdim &osize) |
Returns input dimensions corresponding to output dimensions 'osize'. | |
virtual uint | nstates () |
Returns the number of states produced by this module. | |
Protected Member Functions | |
virtual void | resize_output (Tin &in, mstate< Tout > &out, idxdim *d=NULL) |
Protected Attributes | |
uint | _nstates |
Single-state input to multi-state output module.
ebl::s2m_module< T, Tin, Tout >::s2m_module | ( | uint | nstates, |
const char * | name = "s2m_module< T, Tin, Tout >" |
||
) |
Constructs a module that take a single-state input and produces a multi-state output with 'nstates' states.
void ebl::s2m_module< T, Tin, Tout >::resize_output | ( | Tin & | in, |
mstate< Tout > & | out, | ||
idxdim * | d = NULL |
||
) | [protected, virtual] |
Resize out based on the number of target states and the order of in. By default, states will have the order of in but each dimension will be the minimum size (1). If 'd' is not null, then d are the dimensions used to allocate the states.