Skip to content

Commit c2b2c25

Browse files
NucsOceania2018
authored andcommitted
Added tf.get_default_session()
1 parent 49ee0ef commit c2b2c25

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/TensorFlowNET.Core/tensorflow.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ public void enable_eager_execution()
8888

8989
public string VERSION => c_api.StringPiece(c_api.TF_Version());
9090

91+
public Session get_default_session()
92+
{
93+
return ops.get_default_session();
94+
}
95+
9196
public Session Session()
9297
{
9398
return new Session().as_default();

0 commit comments

Comments
 (0)