@ -835,7 +835,7 @@ public:
*
* output [ i ] = 0 if row i is correct .
*/
virtual void classificationError ( Matrix Ptr output , IVectorPtr label ) {
virtual void classificationError ( Matrix & output , IVector & label ) {
LOG ( FATAL ) < < " Not implemented " ;
}
@ -997,8 +997,8 @@ public:
LOG ( FATAL ) < < " Not implemeted " ;
}
virtual void contextProjectionForward ( Matrix Ptr input ,
Matrix Ptr weight ,
virtual void contextProjectionForward ( Matrix & input ,
Matrix * weight ,
const IVector & sequence ,
int contextLength ,
int contextStart ,
@ -1007,8 +1007,8 @@ public:
LOG ( FATAL ) < < " Not implemeted " ;
}
virtual void contextProjectionBackward ( Matrix Ptr inputGrad ,
Matrix Ptr weightGrad ,
virtual void contextProjectionBackward ( Matrix * inputGrad ,
Matrix * weightGrad ,
const IVector & sequence ,
int contextLength ,
int contextStart ,
@ -1017,14 +1017,14 @@ public:
LOG ( FATAL ) < < " Not implemeted " ;
}
virtual void contextProjectionBackwardData ( Matrix Ptr inputGrad ,
virtual void contextProjectionBackwardData ( Matrix & inputGrad ,
const IVector & sequence ,
int contextLength ,
int contextStart ) {
LOG ( FATAL ) < < " Not implemeted " ;
}
virtual void contextProjectionBackwardWeight ( Matrix Ptr weightGrad ,
virtual void contextProjectionBackwardWeight ( Matrix & weightGrad ,
const IVector & sequence ,
int contextLength ,
int contextStart ,
@ -1373,7 +1373,7 @@ public:
void check ( std : : ostream & os , Matrix & refMat , bool printDiff = true ) ;
void randomizeUniform ( ) ;
void classificationError ( Matrix Ptr output , IVectorPtr label ) ;
void classificationError ( Matrix & output , IVector & label ) ;
void convExpand ( Matrix & feature ,
int feaImgHeight ,
@ -1487,20 +1487,20 @@ public:
const IVector & sequence ,
IVector & index ) ;
void contextProjectionForward ( Matrix Ptr input ,
Matrix Ptr weight ,
void contextProjectionForward ( Matrix & input ,
Matrix * weight ,
const IVector & sequence ,
int contextLength ,
int contextStart ,
size_t beginPad ,
bool isPadding ) ;
void contextProjectionBackwardData ( Matrix Ptr inputGrad ,
void contextProjectionBackwardData ( Matrix & inputGrad ,
const IVector & sequence ,
int contextLength ,
int contextStart ) ;
void contextProjectionBackwardWeight ( Matrix Ptr weightGrad ,
void contextProjectionBackwardWeight ( Matrix & weightGrad ,
const IVector & sequence ,
int contextLength ,
int contextStart ,
@ -1713,16 +1713,16 @@ public:
const IVector & sequence ,
IVector & index ) ;
void contextProjectionForward ( Matrix Ptr input ,
Matrix Ptr weight ,
void contextProjectionForward ( Matrix & input ,
Matrix * weight ,
const IVector & sequence ,
int contextLength ,
int contextStart ,
size_t beginPad ,
bool isPadding ) ;
void contextProjectionBackward ( Matrix Ptr inputGrad ,
Matrix Ptr weightGrad ,
void contextProjectionBackward ( Matrix * inputGrad ,
Matrix * weightGrad ,
const IVector & sequence ,
int contextLength ,
int contextStart ,
@ -1881,7 +1881,7 @@ public:
void randomizeUniform ( ) ;
void classificationError ( Matrix Ptr output , IVectorPtr label ) ;
void classificationError ( Matrix & output , IVector & label ) ;
void addByBitCode ( size_t numClasses , const IVector & codes , const Matrix & vec ) ;