From dc4a4c22d83e49312fb0340447effb47bc5d7f98 Mon Sep 17 00:00:00 2001 From: Eli Belash Date: Tue, 10 Sep 2019 11:37:35 +0300 Subject: [PATCH] Session.LoadFromSavedModel: Removed redundant .as_default() call. --- src/TensorFlowNET.Core/Sessions/Session.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TensorFlowNET.Core/Sessions/Session.cs b/src/TensorFlowNET.Core/Sessions/Session.cs index 4998c40b..690b4e0d 100644 --- a/src/TensorFlowNET.Core/Sessions/Session.cs +++ b/src/TensorFlowNET.Core/Sessions/Session.cs @@ -65,7 +65,7 @@ namespace Tensorflow // var meta_graph = MetaGraphDef.Parser.ParseFrom(data);*/ status.Check(true); - return new Session(sess, g: new Graph(graph).as_default()).as_default(); + return new Session(sess, g: new Graph(graph)).as_default(); } }