libeblearn
|
An abstract class for a module with two inputs and one output. More...
#include <ebl_arch.h>
Public Member Functions | |
module_2_1 (const char *name="module_2_1") | |
virtual void | fprop (Tin1 &in1, Tin2 &in2, Tout &out) |
virtual void | bprop (Tin1 &in1, Tin2 &in2, Tout &out) |
virtual void | bbprop (Tin1 &in1, Tin2 &in2, Tout &out) |
virtual void | fprop (mstate< Tin1 > &in1, mstate< Tin2 > &in2, mstate< Tout > &out) |
virtual void | bprop (mstate< Tin1 > &in1, mstate< Tin2 > &in2, mstate< Tout > &out) |
virtual void | bbprop (mstate< Tin1 > &in1, mstate< Tin2 > &in2, mstate< Tout > &out) |
virtual void | forget (forget_param &fp) |
virtual void | normalize () |
virtual bool | resize_output (Tin1 &in1, Tin2 &in2, Tout &out, idxdim *d=NULL) |
Protected Attributes | |
bool | bresize |
Tells module to resize output or not. |
An abstract class for a module with two inputs and one output.
bool ebl::module_2_1< T, Tin1, Tin2, Tout >::resize_output | ( | Tin1 & | in1, |
Tin2 & | in2, | ||
Tout & | out, | ||
idxdim * | d = NULL |
||
) | [virtual] |
Resizes 'out' to the same dimensions as 'in'. If dimensions already match, nothing is changed. If orders differ, then out is assigned a new 'Tout' buffer if the correct order and dimensions.
d | If not null, use these dimensions as target, otherwise use in.x This returns true if output was resized/reallocated, false otherwise. |