Browse Source

Tensor: revamp of IsDisposed

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

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

@@ -571,16 +571,7 @@ namespace Tensorflow
c_api.TF_DeleteTensor(handle);
}

public bool IsDisposed
{
get
{
lock (this)
{
return _handle == IntPtr.Zero;
}
}
}
public bool IsDisposed => _disposed;

public int tensor_int_val { get; set; }
}

Loading…
Cancel
Save