mirror of
https://github.com/opencv/opencv.git
synced 2026-09-13 05:42:51 -05:00
Merge pull request #26603 from asmorkalov:as/no_struct_binding
Replace structured binding for better compilers support
This commit is contained in:
@@ -678,8 +678,8 @@ void TFImporter::addLayer(const std::string& name, const std::string& type, Laye
|
|||||||
{
|
{
|
||||||
Pin inp = parsePin(inputs[i]);
|
Pin inp = parsePin(inputs[i]);
|
||||||
if (layer_id.find(inp.name) == layer_id.end()) {
|
if (layer_id.find(inp.name) == layer_id.end()) {
|
||||||
for (const auto& [key, value] : layer_id)
|
for (const auto& l : layer_id)
|
||||||
std::cout << '[' << key << "] = " << value << "; ";
|
std::cout << '[' << l.first << "] = " << l.second << "; ";
|
||||||
CV_Error(Error::StsError, "Input layer not found: " + inp.name);
|
CV_Error(Error::StsError, "Input layer not found: " + inp.name);
|
||||||
}
|
}
|
||||||
connect(layer_id, dstNet, inp, id, i);
|
connect(layer_id, dstNet, inp, id, i);
|
||||||
|
|||||||
Reference in New Issue
Block a user