Browse Source

merge

pull/989/head
Haiping Chen 2 years ago
parent
commit
18f0fedeb3
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      src/TensorFlowNET.Core/Checkpoint/CheckpointReader.cs

+ 2
- 4
src/TensorFlowNET.Core/Checkpoint/CheckpointReader.cs View File

@@ -15,10 +15,8 @@ namespace Tensorflow.Checkpoint

protected override bool ReleaseHandle()
{
//if (handle != IntPtr.Zero)
//{
// c_api.TF_DeleteCheckpointReader(this);
//}
c_api.TF_DeleteCheckpointReader(handle);
SetHandle(IntPtr.Zero);
return true;
}
}


Loading…
Cancel
Save