Commit aa46e31c authored by Maksim Shabunin's avatar Maksim Shabunin

Replaced incorrect CV_Assert calls with CV_Error

parent 636b7ec0
...@@ -930,7 +930,7 @@ void TFImporter::populateNet(Net dstNet) ...@@ -930,7 +930,7 @@ void TFImporter::populateNet(Net dstNet)
data_layouts[name] = DATA_LAYOUT_NHWC; data_layouts[name] = DATA_LAYOUT_NHWC;
} }
else 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) else if (data_layouts[layer.input(0)] == DATA_LAYOUT_NCHW)
{ {
...@@ -947,7 +947,7 @@ void TFImporter::populateNet(Net dstNet) ...@@ -947,7 +947,7 @@ void TFImporter::populateNet(Net dstNet)
data_layouts[name] = DATA_LAYOUT_NCHW; data_layouts[name] = DATA_LAYOUT_NCHW;
} }
else 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); int id = dstNet.addLayer(name, "Identity", layerParams);
layer_id[name] = id; layer_id[name] = id;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment