@@ -104,7 +104,7 @@ public Tensor[] TFE_FastPathExecute(FastPathOpExecInfo op_exec_info)
104104 var eager_tensor = ops . convert_to_tensor ( fast_input_array [ j ] ) ;
105105 attr_values [ j ] = eager_tensor . dtype ;
106106
107- c_api . TFE_OpAddInput ( op , eager_tensor . EagerTensorHandle , status . Handle ) ;
107+ c_api . TFE_OpAddInput ( op , eager_tensor . EagerTensorHandle , status ) ;
108108
109109 if ( op_exec_info . run_callbacks )
110110 {
@@ -142,7 +142,7 @@ public Tensor[] TFE_FastPathExecute(FastPathOpExecInfo op_exec_info)
142142 }
143143
144144 var retVals = new SafeEagerTensorHandle [ num_retvals ] ;
145- c_api . TFE_Execute ( op , retVals , out num_retvals , status . Handle ) ;
145+ c_api . TFE_Execute ( op , retVals , out num_retvals , status ) ;
146146 status . Check ( true ) ;
147147
148148 var flat_result = retVals . Select ( x => new EagerTensor ( x ) ) . ToArray ( ) ;
@@ -160,10 +160,10 @@ public Tensor[] TFE_FastPathExecute(FastPathOpExecInfo op_exec_info)
160160 SafeEagerOpHandle GetOp ( Context ctx , string op_or_function_name , Status status )
161161 {
162162 if ( thread_local_eager_operation_map . find ( op_or_function_name , out var op ) )
163- c_api . TFE_OpReset ( op , op_or_function_name , ctx . DeviceName , status . Handle ) ;
163+ c_api . TFE_OpReset ( op , op_or_function_name , ctx . DeviceName , status ) ;
164164 else
165165 {
166- op = c_api . TFE_NewOp ( ctx . Handle , op_or_function_name , status . Handle ) ;
166+ op = c_api . TFE_NewOp ( ctx , op_or_function_name , status ) ;
167167 thread_local_eager_operation_map [ op_or_function_name ] = op ;
168168 }
169169
@@ -219,7 +219,7 @@ bool AddInputToOp(object inputs,
219219 flattened_attrs . Add ( dtype ) ;
220220 }
221221
222- c_api . TFE_OpAddInput ( op , tensor . EagerTensorHandle , status . Handle ) ;
222+ c_api . TFE_OpAddInput ( op , tensor . EagerTensorHandle , status ) ;
223223 status . Check ( true ) ;
224224
225225 return true ;
@@ -235,7 +235,7 @@ public void SetOpAttrs(SafeEagerOpHandle op, params object[] attrs)
235235 var value = attrs [ i + 1 ] ;
236236
237237 byte is_list = 0 ;
238- var type = c_api . TFE_OpGetAttrType ( op , key , ref is_list , status . Handle ) ;
238+ var type = c_api . TFE_OpGetAttrType ( op , key , ref is_list , status ) ;
239239 if ( ! status . ok ( ) ) return ;
240240 if ( is_list != 0 )
241241 SetOpAttrList ( tf . Context , op , key , value as object [ ] , type , null , status ) ;
@@ -264,7 +264,7 @@ void SetOpAttrWithDefaults(Context ctx, SafeEagerOpHandle op, AttrDef attr,
264264 Status status )
265265 {
266266 byte is_list = 0 ;
267- var type = c_api . TFE_OpGetAttrType ( op , attr_name , ref is_list , status . Handle ) ;
267+ var type = c_api . TFE_OpGetAttrType ( op , attr_name , ref is_list , status ) ;
268268 if ( status . Code != TF_Code . TF_OK ) return ;
269269
270270 if ( attr_value == null )
@@ -305,7 +305,7 @@ bool SetOpAttrList(Context ctx, SafeEagerOpHandle op,
305305 tf . memcpy ( dims [ i ] , values1 [ i ] . dims , values1 [ i ] . ndim * sizeof ( long ) ) ;
306306 }
307307
308- c_api . TFE_OpSetAttrShapeList ( op , key , dims , num_dims , num_values , status . Handle ) ;
308+ c_api . TFE_OpSetAttrShapeList ( op , key , dims , num_dims , num_values , status ) ;
309309 Array . ForEach ( dims , x => Marshal . FreeHGlobal ( x ) ) ;
310310 }
311311 else if ( type == TF_AttrType . TF_ATTR_TYPE && values is TF_DataType [ ] values2 )
@@ -353,7 +353,7 @@ bool SetOpAttrScalar(Context ctx, SafeEagerOpHandle op,
353353 break ;
354354 case TF_AttrType . TF_ATTR_SHAPE :
355355 var dims = ( value as long [ ] ) . ToArray ( ) ;
356- c_api . TFE_OpSetAttrShape ( op , key , dims , dims . Length , status . Handle ) ;
356+ c_api . TFE_OpSetAttrShape ( op , key , dims , dims . Length , status ) ;
357357 status . Check ( true ) ;
358358 break ;
359359 case TF_AttrType . TF_ATTR_FUNC :
0 commit comments