| 652 | } |
| 653 | |
| 654 | TF_Function* TF_GraphToFunction(const TF_Graph* fn_body, const char* fn_name, |
| 655 | unsigned char append_hash_to_fn_name, |
| 656 | int num_opers, const TF_Operation* const* opers, |
| 657 | int ninputs, const TF_Output* inputs, |
| 658 | int noutputs, const TF_Output* outputs, |
| 659 | const char* const* output_names, |
| 660 | const TF_FunctionOptions* opts, |
| 661 | const char* description, TF_Status* status) { |
| 662 | return TF_GraphToFunctionWithControlOutputs( |
| 663 | fn_body, fn_name, append_hash_to_fn_name, num_opers, opers, ninputs, |
| 664 | inputs, noutputs, outputs, output_names, 0, nullptr, nullptr, opts, |
| 665 | description, status); |
| 666 | } |
| 667 | |
| 668 | const char* TF_FunctionName(TF_Function* func) { |
| 669 | return func->fdef.signature().name().c_str(); |