@@ -298,20 +298,20 @@ RAI_Model *RAI_ModelCreateTF(RAI_Backend backend, const char *devicestr, RAI_Mod
298
298
tf_outputs [i ] = port ;
299
299
}
300
300
301
- TF_Function * function = TF_GraphToFunction (
302
- graph , // fn_body
303
- RAI_TF_FN_NAME , 0 , // fn_name, append_hash_to_fn_name,
304
- -1 , NULL , // num_opers, opers
305
- ninputs , tf_inputs , // ninputs, inputs,
306
- noutputs , tf_outputs , // noutputs, outputs
307
- outputs , // output_names,
308
- NULL , // opts
309
- "" , // description
310
- status // status
301
+ TF_Function * function =
302
+ TF_GraphToFunction ( graph , // fn_body
303
+ RAI_TF_FN_NAME , 0 , // fn_name, append_hash_to_fn_name,
304
+ -1 , NULL , // num_opers, opers
305
+ ninputs , tf_inputs , // ninputs, inputs,
306
+ noutputs , tf_outputs , // noutputs, outputs
307
+ outputs , // output_names,
308
+ opts , // opts
309
+ "" , // description
310
+ status // status
311
311
);
312
312
// TODO EAGER
313
313
// check status and return error
314
-
314
+
315
315
TFE_ContextOptions * context_opts = TFE_NewContextOptions ();
316
316
// TFE_ContextOptionsSetConfig(context_opts, proto, proto_len, status);
317
317
// TFE_ContextOptionsSetAsync(context_opts, 0);
@@ -320,11 +320,11 @@ RAI_Model *RAI_ModelCreateTF(RAI_Backend backend, const char *devicestr, RAI_Mod
320
320
TFE_Context * context = TFE_NewContext (context_opts , status );
321
321
// TODO EAGER
322
322
// check status and return error
323
-
323
+
324
324
TFE_ContextAddFunction (context , function , status );
325
325
// TODO EAGER
326
326
// check status and return error
327
-
327
+
328
328
TFE_DeleteContextOptions (context_opts );
329
329
TFE_DeleteContext (context );
330
330
0 commit comments