Lines Matching refs:grad1
937 CvMat *x1 = &hdr1, *x2 = &hdr2, *grad1 = &ghdr1, *grad2 = &ghdr2, *temp; in train_backprop() local
985 cvInitMatHeader( grad1, 1, ovcount, CV_64F, buf_ptr ); in train_backprop()
986 *grad2 = *grad1; in train_backprop()
998 grad1->data.db[k] = t*sweight; in train_backprop()
1008 grad1->data.db[k] = t*sweight; in train_backprop()
1019 cvMul( grad1, &_df, grad1 ); in train_backprop()
1024 cvGEMM( x1, grad1, params.bp_dw_scale, &_dw, params.bp_moment_scale, &_dw ); in train_backprop()
1030 cvGEMM( grad1, &_w, 1, 0, 0, grad2, CV_GEMM_B_T ); in train_backprop()
1032 CV_SWAP( grad1, grad2, temp ); in train_backprop()
1132 CvMat *x1, *x2, *grad1, *grad2, *temp; in train_rprop() local
1140 grad1 = &ghdr1; grad2 = &ghdr2; in train_rprop()
1175 cvInitMatHeader( grad1, dcount, ovcount, CV_64F, buf_ptr ); in train_rprop()
1185 double* gdata = grad1->data.db + i*ovcount; in train_rprop()
1201 double* gdata = grad1->data.db + i*ovcount; in train_rprop()
1218 cvMul( grad1, &_df, grad1 ); in train_rprop()
1221 cvGEMM( x1, grad1, 1, &_dEdw, 1, &_dEdw, CV_GEMM_A_T ); in train_rprop()
1226 const double* src = grad1->data.db + k*n2; in train_rprop()
1234 cvGEMM( grad1, &_w, 1, 0, 0, grad2, CV_GEMM_B_T ); in train_rprop()
1235 CV_SWAP( grad1, grad2, temp ); in train_rprop()