|
@@ -1,22 +1,21 @@ |
|
|
using System; |
|
|
using System; |
|
|
using System.Collections.Generic; |
|
|
|
|
|
using System.Runtime.InteropServices; |
|
|
using System.Runtime.InteropServices; |
|
|
using System.Text; |
|
|
|
|
|
|
|
|
using Tensorflow.Variables; |
|
|
|
|
|
|
|
|
namespace Tensorflow |
|
|
namespace Tensorflow |
|
|
{ |
|
|
{ |
|
|
public partial class c_api |
|
|
public partial class c_api |
|
|
{ |
|
|
{ |
|
|
[DllImport(TensorFlowLibName)] |
|
|
[DllImport(TensorFlowLibName)] |
|
|
public static extern IntPtr TFE_NewResourceVariable(); |
|
|
|
|
|
|
|
|
public static extern SafeResourceVariableHandle TFE_NewResourceVariable(); |
|
|
|
|
|
|
|
|
[DllImport(TensorFlowLibName)] |
|
|
[DllImport(TensorFlowLibName)] |
|
|
public static extern void TFE_DeleteResourceVariable(IntPtr variable); |
|
|
public static extern void TFE_DeleteResourceVariable(IntPtr variable); |
|
|
|
|
|
|
|
|
[DllImport(TensorFlowLibName)] |
|
|
[DllImport(TensorFlowLibName)] |
|
|
public static extern void TFE_SetResourceVariableHandle(IntPtr variable, IntPtr tensor); |
|
|
|
|
|
|
|
|
public static extern void TFE_SetResourceVariableHandle(SafeResourceVariableHandle variable, IntPtr tensor); |
|
|
|
|
|
|
|
|
[DllImport(TensorFlowLibName)] |
|
|
[DllImport(TensorFlowLibName)] |
|
|
public static extern void TFE_SetResourceVariableName(IntPtr variable, string name); |
|
|
|
|
|
|
|
|
public static extern void TFE_SetResourceVariableName(SafeResourceVariableHandle variable, string name); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |