Browse Source

Tensor.Creation: uncommented `Marshal.FreeHGlobal(dataPtr);`

tags/v0.12
Eli Belash 6 years ago
parent
commit
cbf8945cae
1 changed files with 2 additions and 1 deletions
  1. +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) if (args.deallocator_called)
return; return;

// NumSharp will dispose // NumSharp will dispose
// Marshal.FreeHGlobal(dataPtr);
Marshal.FreeHGlobal(dataPtr);
args.deallocator_called = true; args.deallocator_called = true;
} }




Loading…
Cancel
Save