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

Fix dnn::getLayerInputs

This commit is contained in:
Dimitri Gerin
2019-11-06 21:05:35 +03:00
committed by Dmitry Kurtaev
parent c546a27de7
commit 7c4158d8c2
2 changed files with 5 additions and 6 deletions
+2
View File
@@ -86,6 +86,8 @@ TEST_P(dump, Regression)
Net net = readNet(findDataFile("dnn/squeezenet_v1.1.prototxt"),
findDataFile("dnn/squeezenet_v1.1.caffemodel", false));
ASSERT_EQ(net.getLayerInputs(net.getLayerId("fire2/concat")).size(), 2);
int size[] = {1, 3, 227, 227};
Mat input = cv::Mat::ones(4, size, CV_32F);
net.setInput(input);