Browse Source

Tensor.DisposeUnmanagedResources: Nullify _handle after delete.

tags/v0.12
Eli Belash 6 years ago
parent
commit
2c0115364a
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/TensorFlowNET.Core/Tensors/Tensor.cs

+ 1
- 0
src/TensorFlowNET.Core/Tensors/Tensor.cs View File

@@ -571,6 +571,7 @@ namespace Tensorflow
if (handle != IntPtr.Zero)
{
c_api.TF_DeleteTensor(handle);
_handle = IntPtr.Zero;
}
}



Loading…
Cancel
Save