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