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
DisposableObject.Dispose(): Added lock to prevent concurrent disposal
tags/v0.12
Eli Belash
6 years ago
parent
af73e3cb26
commit
463c62e412
1 changed files
with
5 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-2
src/TensorFlowNET.Core/DisposableObject.cs
+ 5
- 2
src/TensorFlowNET.Core/DisposableObject.cs
View File
@@ -77,8 +77,11 @@ namespace Tensorflow
public void Dispose()
{
internal_dispose(true);
GC.SuppressFinalize(this);
lock(this)
{
internal_dispose(true);
GC.SuppressFinalize(this);
}
}
/// <summary>
Write
Preview
Loading…
Cancel
Save