MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TF_GraphToFunction

Function TF_GraphToFunction

tensorflow/c/c_api_function.cc:654–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

652}
653
654TF_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
668const char* TF_FunctionName(TF_Function* func) {
669 return func->fdef.signature().name().c_str();

Callers 5

DefineTMethod · 0.85
DefineFunctionFunction · 0.85
TEST_FFunction · 0.85
DefineStatefulFunctionFunction · 0.85
TESTFunction · 0.85

Tested by 5

DefineTMethod · 0.68
DefineFunctionFunction · 0.68
TEST_FFunction · 0.68
DefineStatefulFunctionFunction · 0.68
TESTFunction · 0.68