dnn: reduce set of ignored warnings

This commit is contained in:
Alexander Alekhin
2018-11-14 20:25:23 +00:00
committed by Alexander Alekhin
parent 02d2cc58d7
commit 96c71dd3d2
42 changed files with 195 additions and 178 deletions
+3 -3
View File
@@ -140,9 +140,9 @@ TEST(LayerFactory, custom_layers)
net.setPreferableBackend(DNN_BACKEND_OPENCV);
Mat output = net.forward();
if (i == 0) EXPECT_EQ(output.at<float>(0), 1);
else if (i == 1) EXPECT_EQ(output.at<float>(0), 2);
else if (i == 2) EXPECT_EQ(output.at<float>(0), 1);
if (i == 0) { EXPECT_EQ(output.at<float>(0), 1); }
else if (i == 1) { EXPECT_EQ(output.at<float>(0), 2); }
else if (i == 2) { EXPECT_EQ(output.at<float>(0), 1); }
}
LayerFactory::unregisterLayer("CustomType");
}