From c426a68efe66e6413a3569c00b86650a55b8d9cc Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Mon, 29 Jun 2020 08:19:55 -0700 Subject: [PATCH] Fix the signature of TF_GetBuffer --- src/TensorFlowNET.Core/Buffers/c_api.buffer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TensorFlowNET.Core/Buffers/c_api.buffer.cs b/src/TensorFlowNET.Core/Buffers/c_api.buffer.cs index a7dc0ff2..2e242230 100644 --- a/src/TensorFlowNET.Core/Buffers/c_api.buffer.cs +++ b/src/TensorFlowNET.Core/Buffers/c_api.buffer.cs @@ -32,7 +32,7 @@ namespace Tensorflow public static extern SafeBufferHandle TF_NewBuffer(); [DllImport(TensorFlowLibName)] - public static extern IntPtr TF_GetBuffer(TF_Buffer buffer); + public static extern TF_Buffer TF_GetBuffer(SafeBufferHandle buffer); /// /// Makes a copy of the input and sets an appropriate deallocator. Useful for