#include <MaxVariable.h>
Inheritance diagram for PLearn::MaxVariable:
Public Member Functions | |
MaxVariable () | |
Default constructor for persistence. | |
MaxVariable (Variable *input) | |
PLEARN_DECLARE_OBJECT (MaxVariable) | |
virtual void | recomputeSize (int &l, int &w) const |
Recomputes the length l and width w that this variable should have, according to its parent variables. | |
virtual void | fprop () |
compute output given input | |
virtual void | bprop () |
virtual void | symbolicBprop () |
compute a piece of new Var graph that represents the symbolic derivative of this Var | |
Private Types | |
typedef UnaryVariable | inherited |
|
Reimplemented from PLearn::UnaryVariable. Definition at line 56 of file MaxVariable.h. Referenced by MaxVariable(). |
|
Default constructor for persistence.
Definition at line 60 of file MaxVariable.h. |
|
Definition at line 57 of file MaxVariable.cc. References inherited. |
|
Implements PLearn::Variable. Definition at line 77 of file MaxVariable.cc. |
|
compute output given input
Implements PLearn::Variable. Definition at line 64 of file MaxVariable.cc. References val. |
|
|
|
Recomputes the length l and width w that this variable should have, according to its parent variables. This is used for ex. by sizeprop() The default version stupidly returns the current dimensions, so make sure to overload it in subclasses if this is not appropriate. Reimplemented from PLearn::Variable. Definition at line 61 of file MaxVariable.cc. |
|
compute a piece of new Var graph that represents the symbolic derivative of this Var
Reimplemented from PLearn::Variable. Definition at line 88 of file MaxVariable.cc. References PLearn::argmax(), PLearn::Var::length(), and PLearn::Var::width(). |