Browse Source

rename with to tf_with, only use to construct graph purpose.

tags/v0.12
Oceania2018 6 years ago
parent
commit
f28693b34c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/TensorFlowNET.Core/Sessions/BaseSession.cs

+ 2
- 2
src/TensorFlowNET.Core/Sessions/BaseSession.cs View File

@@ -383,11 +383,11 @@ namespace Tensorflow
Dispose(); Dispose();
} }
protected override void DisposeUnManagedState()
protected override void DisposeUnManagedState(IntPtr handle)
{ {
using (var status = new Status()) using (var status = new Status())
{ {
c_api.TF_DeleteSession(_handle, status);
c_api.TF_DeleteSession(handle, status);
status.Check(true); status.Check(true);
} }
} }


Loading…
Cancel
Save