Skip to content

Commit dc4a4c2

Browse files
committed
Session.LoadFromSavedModel: Removed redundant .as_default() call.
1 parent b251295 commit dc4a4c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/TensorFlowNET.Core/Sessions/Session.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static Session LoadFromSavedModel(string path)
6565
// var meta_graph = MetaGraphDef.Parser.ParseFrom(data);*/
6666
status.Check(true);
6767

68-
return new Session(sess, g: new Graph(graph).as_default()).as_default();
68+
return new Session(sess, g: new Graph(graph)).as_default();
6969
}
7070
}
7171

0 commit comments

Comments
 (0)