Merge pull request #14050 from npochhi:mlp_ann_eps_change

This commit is contained in:
Alexander Alekhin 2019-03-14 13:36:57 +00:00
commit 73bf170800

View File

@ -971,7 +971,7 @@ public:
int count = inputs.rows;
int iter = -1, max_iter = termCrit.maxCount*count;
double epsilon = termCrit.epsilon*count;
double epsilon = (termCrit.type & CV_TERMCRIT_EPS) ? termCrit.epsilon*count : 0;
int l_count = layer_count();
int ivcount = layer_sizes[0];