mirror of
https://github.com/opencv/opencv.git
synced 2025-07-20 19:17:36 +08:00
Merge pull request #10397 from mshabunin:fix-incorrect-assert
This commit is contained in:
commit
97af608030
@ -930,7 +930,7 @@ void TFImporter::populateNet(Net dstNet)
|
||||
data_layouts[name] = DATA_LAYOUT_NHWC;
|
||||
}
|
||||
else
|
||||
CV_Assert(Error::StsParseError, "Only NHWC <-> NCHW permutations are allowed.");
|
||||
CV_Error(Error::StsParseError, "Only NHWC <-> NCHW permutations are allowed.");
|
||||
}
|
||||
else if (data_layouts[layer.input(0)] == DATA_LAYOUT_NCHW)
|
||||
{
|
||||
@ -947,7 +947,7 @@ void TFImporter::populateNet(Net dstNet)
|
||||
data_layouts[name] = DATA_LAYOUT_NCHW;
|
||||
}
|
||||
else
|
||||
CV_Assert(Error::StsParseError, "Only NHWC <-> NCHW permutations are allowed.");
|
||||
CV_Error(Error::StsParseError, "Only NHWC <-> NCHW permutations are allowed.");
|
||||
}
|
||||
int id = dstNet.addLayer(name, "Identity", layerParams);
|
||||
layer_id[name] = id;
|
||||
|
Loading…
Reference in New Issue
Block a user