File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
src/TensorFlowNET.Core/Eager Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments