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.Creation: uncommented `Marshal.FreeHGlobal(dataPtr);`
tags/v0.12
Eli Belash
6 years ago
parent
d208f31db7
commit
cbf8945cae
1 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
src/TensorFlowNET.Core/Tensors/Tensor.Creation.cs
+ 2
- 1
src/TensorFlowNET.Core/Tensors/Tensor.Creation.cs
View File
@@ -667,8 +667,9 @@ namespace Tensorflow
{
if (args.deallocator_called)
return;
// NumSharp will dispose
//
Marshal.FreeHGlobal(dataPtr);
Marshal.FreeHGlobal(dataPtr);
args.deallocator_called = true;
}
Write
Preview
Loading…
Cancel
Save