mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Import wrapped Dropout subgraphs from TensorFlow
This commit is contained in:
@@ -363,7 +363,7 @@ void RemoveIdentityOps(tensorflow::GraphDef& net) {
|
||||
const tensorflow::NodeDef &layer = net.node(li);
|
||||
String type = layer.op();
|
||||
|
||||
if (type == "Identity") {
|
||||
if (type == "Identity" || type == "Dropout") {
|
||||
identity_ops_idx.push_back(li);
|
||||
identity_ops[layer.name()] = layer.input(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user