We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e27145e commit db625c7Copy full SHA for db625c7
src/TensorFlowNET.Core/Graphs/Graph.Operation.cs
@@ -68,12 +68,11 @@ public Operation OperationByName(string operName)
68
if (handle == IntPtr.Zero)
69
throw new ValueError($"Could not find operation \"{operName}\" inside graph \"{_graph_key}\".");
70
71
- var defaultKey = tf.get_default_graph().graph_key;
+ /*var defaultKey = tf.get_default_graph().graph_key;
72
if (tf.get_default_graph().GetType().Name == "Graph" && graph_key != defaultKey)
73
{
74
- //Console.WriteLine($"Current graph is not default graph.");
75
throw new RuntimeError($"Current graph is not default graph. Default Graph Key: {defaultKey}, Current Graph Key: {graph_key}");
76
- }
+ }*/
77
78
return new Operation(handle, g: this);
79
}
0 commit comments