diff --git a/src/TensorFlowNET.Core/Eager/c_api.eager.cs b/src/TensorFlowNET.Core/Eager/c_api.eager.cs new file mode 100644 index 00000000..b8a88cf5 --- /dev/null +++ b/src/TensorFlowNET.Core/Eager/c_api.eager.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Runtime.InteropServices; +using System.Text; + +namespace Tensorflow +{ + public partial class c_api + { + /// + /// Return a new options object. + /// + /// + [DllImport(TensorFlowLibName)] + public static extern IntPtr TFE_NewContextOptions(); + + /// + /// Destroy an options object. + /// + /// + [DllImport(TensorFlowLibName)] + public static extern void TFE_DeleteContextOptions(IntPtr options); + + [DllImport(TensorFlowLibName)] + public static extern IntPtr TFE_NewContext(IntPtr opts, IntPtr status); + + [DllImport(TensorFlowLibName)] + public static extern void TFE_DeleteContext(IntPtr ctx); + + [DllImport(TensorFlowLibName)] + public static extern IntPtr TFE_NewOp(IntPtr ctx, string op_or_function_name, IntPtr status); + } +}