From 7a0b9f35b5aca74e876f275dbabdb04572232124 Mon Sep 17 00:00:00 2001 From: harunresit Date: Sun, 16 Nov 2025 21:20:33 +0100 Subject: [PATCH] Initial commit --- modules/dnn/src/torch/torch_importer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dnn/src/torch/torch_importer.cpp b/modules/dnn/src/torch/torch_importer.cpp index 08822102c7..e39e59126c 100644 --- a/modules/dnn/src/torch/torch_importer.cpp +++ b/modules/dnn/src/torch/torch_importer.cpp @@ -598,7 +598,7 @@ struct TorchImporter readTorchTable(scalarParams, tensorParams); CV_Assert(tensorParams.count("weight")); - Mat weightBlob = tensorParams["weight"].second; + const Mat& weightBlob = tensorParams["weight"].second; layerParams.blobs.push_back(weightBlob); bool bias = tensorParams.count("bias") != 0;