This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
scisharp
/
TensorFlow.NET
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
21
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
Tensor: Fixed redundant check and assignment in DisposeUnmanagedResources
tags/v0.12
Eli Belash
6 years ago
parent
1e791f6750
commit
3fecaf02b8
1 changed files
with
1 additions
and
5 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-5
src/TensorFlowNET.Core/Tensors/Tensor.cs
+ 1
- 5
src/TensorFlowNET.Core/Tensors/Tensor.cs
View File
@@ -568,11 +568,7 @@ namespace Tensorflow
protected override void DisposeUnmanagedResources(IntPtr handle)
{
if (handle != IntPtr.Zero)
{
c_api.TF_DeleteTensor(handle);
_handle = IntPtr.Zero;
}
c_api.TF_DeleteTensor(handle);
}
public bool IsDisposed
Write
Preview
Loading…
Cancel
Save