Lines Matching refs:ann
858 ann = _ann;
867 ANN_MLPImpl* ann;
877 int ivcount = ann->layer_sizes.front();
878 int ovcount = ann->layer_sizes.back();
881 int i, j, k, l_count = ann->layer_count();
884 vector<double> _buf(ann->max_lsize*dcount0*2);
885 double* buf[] = { &_buf[0], &_buf[ann->max_lsize*dcount0] };
890 x[i].resize(ann->layer_sizes[i]*dcount0);
891 df[i].resize(ann->layer_sizes[i]*dcount0);
898 const double* w = ann->weights[0].ptr<double>();
916 Mat x2( dcount, ann->layer_sizes[i], CV_64F, &x[i][0] );
917 Mat _w = ann->weights[i].rowRange(0, x1.cols);
920 ann->calc_activ_func_deriv( x2, _df, ann->weights[i] );
926 w = ann->weights[l_count+1].ptr<double>();
950 int n1 = ann->layer_sizes[i-1], n2 = ann->layer_sizes[i];
955 AutoLock lock(ann->mtx);
973 Mat _w = ann->weights[i].rowRange(0, n1);
980 AutoLock lock(ann->mtx);