1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Merge pull request #10850 from dkurt:dnn_tf_deconv_tests

This commit is contained in:
Vadim Pisarevsky
2018-02-14 10:35:14 +00:00
4 changed files with 136 additions and 18 deletions
+8
View File
@@ -267,6 +267,14 @@ public:
int i, newRows = 1;
for( i = 0; i < splitDim; i++ )
newRows *= inpBlob.size[i];
if (inpBlob.total() == newRows)
{
// MVN is applied to single values at an every row.
outBlob.setTo(0);
return;
}
Mat inpMat = inpBlob.reshape(1, newRows);
Mat outMat = outBlob.reshape(1, newRows);