@@ -8,46 +8,6 @@ namespace Tensorflow
88{
99 public partial class c_api
1010 {
11- [ DllImport ( TensorFlowLibName ) ]
12- public static extern void TFE_RegisterGradientFunction ( gradient_function_callback gradientFunctionCallback ,
13- delete_backward_function_callback deleteBackwardFunctionCallback ) ;
14-
15- /// <summary>
16- ///
17- /// </summary>
18- /// <param name="op_name"></param>
19- /// <param name="op_inputs"></param>
20- /// <param name="op_outputs"></param>
21- /// <param name="attrs_string"></param>
22- /// <param name="output_grads">previous node ouput</param>
23- /// <param name="skip_input_indices"></param>
24- /// <returns></returns>
25- [ UnmanagedFunctionPointer ( CallingConvention . StdCall ) ]
26- public delegate IntPtr gradient_function_callback ( string op_name ,
27- IntPtr op_inputs ,
28- IntPtr op_outputs ,
29- string attrs_string ,
30- IntPtr output_grads ,
31- IntPtr skip_input_indices ) ;
32-
33- [ UnmanagedFunctionPointer ( CallingConvention . StdCall ) ]
34- public delegate void delete_backward_function_callback ( string op_name ,
35- IntPtr op_inputs ,
36- IntPtr op_outputs ) ;
37-
38- [ DllImport ( TensorFlowLibName ) ]
39- public static extern IntPtr TFE_WrapGradientResult ( IntPtr [ ] gradients , int num_gradients ) ;
40-
41- [ DllImport ( TensorFlowLibName ) ]
42- public static extern IntPtr VSpace_Handle ( VSpace_callback_Ones ones , VSpace_callback_AggregateGrads aggregate_grads ) ;
43- [ UnmanagedFunctionPointer ( CallingConvention . StdCall ) ]
44- public delegate IntPtr VSpace_callback_Ones ( long [ ] shape , int dims , TF_DataType dtype ) ;
45- [ UnmanagedFunctionPointer ( CallingConvention . StdCall ) ]
46- public delegate IntPtr VSpace_callback_AggregateGrads ( TF_BindingArray gradients ) ;
47-
48- [ DllImport ( TensorFlowLibName ) ]
49- public static extern void TFE_RegisterVSpace ( IntPtr vspace ) ;
50-
5111 /// <summary>
5212 /// Return a new options object.
5313 /// </summary>
@@ -239,15 +199,6 @@ public delegate void delete_backward_function_callback(string op_name,
239199 [ DllImport ( TensorFlowLibName ) ]
240200 public static extern IntPtr TFE_EagerTensorHandle ( IntPtr t ) ;
241201
242- [ DllImport ( TensorFlowLibName ) ]
243- public static extern int TFE_EagerTensorId ( IntPtr t ) ;
244-
245- [ DllImport ( TensorFlowLibName ) ]
246- public static extern IntPtr TFE_NewEagerTensor ( ) ;
247-
248- [ DllImport ( TensorFlowLibName ) ]
249- public static extern void TFE_SetEagerTensorHandle ( IntPtr tensor , IntPtr handle ) ;
250-
251202 /// <summary>
252203 /// Sets the default execution mode (sync/async). Note that this can be
253204 /// overridden per thread using TFE_ContextSetExecutorForThread.
0 commit comments