Skip to content

Commit 7021a9c

Browse files
HackingSMAmigueldeicaza
authored andcommitted
1 parent 598b320 commit 7021a9c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

TensorFlowSharp/Tensor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ internal static void FreeTensorData (IntPtr data, IntPtr len, IntPtr closure)
8585
Marshal.FreeHGlobal (data);
8686
}
8787

88+
[MonoPInvokeCallback (typeof (Deallocator))]
8889
internal static void FreeTensorHandle (IntPtr data, IntPtr len, IntPtr closure)
8990
{
9091
var gch = GCHandle.FromIntPtr (closure);

0 commit comments

Comments
 (0)