Skip to content

Commit db625c7

Browse files
committed
remove default graph validation
1 parent e27145e commit db625c7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/TensorFlowNET.Core/Graphs/Graph.Operation.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,11 @@ public Operation OperationByName(string operName)
6868
if (handle == IntPtr.Zero)
6969
throw new ValueError($"Could not find operation \"{operName}\" inside graph \"{_graph_key}\".");
7070

71-
var defaultKey = tf.get_default_graph().graph_key;
71+
/*var defaultKey = tf.get_default_graph().graph_key;
7272
if (tf.get_default_graph().GetType().Name == "Graph" && graph_key != defaultKey)
7373
{
74-
//Console.WriteLine($"Current graph is not default graph.");
7574
throw new RuntimeError($"Current graph is not default graph. Default Graph Key: {defaultKey}, Current Graph Key: {graph_key}");
76-
}
75+
}*/
7776

7877
return new Operation(handle, g: this);
7978
}

0 commit comments

Comments
 (0)