Browse Source

Added tf.get_default_session()

tags/v0.20
Eli Belash 5 years ago
parent
commit
0f82f27971
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/TensorFlowNET.Core/tensorflow.cs

+ 5
- 0
src/TensorFlowNET.Core/tensorflow.cs View File

@@ -88,6 +88,11 @@ namespace Tensorflow

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

public Session get_default_session()
{
return ops.get_default_session();
}

public Session Session()
{
return new Session().as_default();


Loading…
Cancel
Save