99using TF_Operation = System . IntPtr ;
1010using TF_Status = System . IntPtr ;
1111using TF_Tensor = System . IntPtr ;
12+ using TF_Session = System . IntPtr ;
13+ using TF_SessionOptions = System . IntPtr ;
1214
1315using TF_DataType = Tensorflow . DataType ;
1416using Tensorflow ;
@@ -20,6 +22,9 @@ public static class c_api
2022 {
2123 public const string TensorFlowLibName = "tensorflow" ;
2224
25+ [ DllImport ( TensorFlowLibName ) ]
26+ public static unsafe extern void TF_DeleteSessionOptions ( TF_SessionOptions opts ) ;
27+
2328 [ DllImport ( TensorFlowLibName ) ]
2429 public static unsafe extern TF_Operation TF_FinishOperation ( TF_OperationDescription desc , TF_Status status ) ;
2530
@@ -53,6 +58,12 @@ public static class c_api
5358 [ DllImport ( TensorFlowLibName ) ]
5459 public static extern unsafe void TF_SetAttrType ( TF_OperationDescription desc , string attr_name , TF_DataType value ) ;
5560
61+ [ DllImport ( TensorFlowLibName ) ]
62+ public static extern TF_Session TF_NewSession ( TF_Graph graph , TF_SessionOptions opts , TF_Status status ) ;
63+
64+ [ DllImport ( TensorFlowLibName ) ]
65+ public static extern TF_SessionOptions TF_NewSessionOptions ( ) ;
66+
5667 [ DllImport ( TensorFlowLibName ) ]
5768 public static unsafe extern IntPtr TF_Version ( ) ;
5869 }
0 commit comments