mirror of
https://github.com/opencv/opencv.git
synced 2025-06-11 11:45:30 +08:00
add assert to check if layer input size is not empty
This commit is contained in:
parent
725e440d27
commit
2b9d2c726a
@ -815,6 +815,7 @@ void RemoveIdentityOps(tensorflow::GraphDef& net)
|
||||
|
||||
if (type == "Identity" || type == "Dropout" || type == "PlaceholderWithDefault") {
|
||||
identity_ops_idx.push_back(li);
|
||||
CV_Assert(layer.input_size() != 0);
|
||||
identity_ops[layer.name()] = layer.input(0);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user