1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Remove undocumented feature to retreive layers outputs by indices

This commit is contained in:
Dmitry Kurtaev
2018-06-20 14:25:24 +03:00
parent eed43a231b
commit 40b85c1cd9
3 changed files with 47 additions and 37 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ static void runTorchNet(String prefix, int targetId = DNN_TARGET_CPU, String out
if (outLayerName.empty())
outLayerName = net.getLayerNames().back();
net.setInput(inp, "0");
net.setInput(inp);
std::vector<Mat> outBlobs;
net.forward(outBlobs, outLayerName);
normAssert(outRef, outBlobs[0]);