| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c45361c commit db8fdcb
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,33 @@ | |||
| 1 | + using System; | ||
| 2 | + using System.Collections.Generic; | ||
| 3 | + using System.Runtime.InteropServices; | ||
| 4 | + using System.Text; | ||
| 5 | + | ||
| 6 | + namespace Tensorflow | ||
| 7 | + { | ||
| 8 | + public partial class c_api | ||
| 9 | + { | ||
| 10 | + /// <summary> | ||
| 11 | + /// Return a new options object. | ||
| 12 | + /// </summary> | ||
| 13 | + /// <returns></returns> | ||
| 14 | + [DllImport(TensorFlowLibName)] | ||
| 15 | + public static extern IntPtr TFE_NewContextOptions(); | ||
| 16 | + | ||
| 17 | + /// <summary> | ||
| 18 | + /// Destroy an options object. | ||
| 19 | + /// </summary> | ||
| 20 | + /// <param name="options"></param> | ||
| 21 | + [DllImport(TensorFlowLibName)] | ||
| 22 | + public static extern void TFE_DeleteContextOptions(IntPtr options); | ||
| 23 | + | ||
| 24 | + [DllImport(TensorFlowLibName)] | ||
| 25 | + public static extern IntPtr TFE_NewContext(IntPtr opts, IntPtr status); | ||
| 26 | + | ||
| 27 | + [DllImport(TensorFlowLibName)] | ||
| 28 | + public static extern void TFE_DeleteContext(IntPtr ctx); | ||
| 29 | + | ||
| 30 | + [DllImport(TensorFlowLibName)] | ||
| 31 | + public static extern IntPtr TFE_NewOp(IntPtr ctx, string op_or_function_name, IntPtr status); | ||
| 32 | + } | ||
| 33 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments