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:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user