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

Function TF_FunctionImportFunctionDef

tensorflow/c/c_api_function.cc:722–733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

720}
721
722TF_Function* TF_FunctionImportFunctionDef(const void* proto, size_t proto_len,
723 TF_Status* status) {
724 TF_Function* func = new TF_Function();
725 if (!func->fdef.ParseFromArray(proto, proto_len)) {
726 status->status = InvalidArgument(
727 "Invalid FunctionDef given to TF_FunctionImportFunctionDef");
728 TF_DeleteFunction(func);
729 return nullptr;
730 }
731 status->status = tensorflow::Status::OK();
732 return func;
733}
734
735void TF_FunctionSetAttrValueProto(TF_Function* func, const char* attr_name,
736 const void* proto, size_t proto_len,

Callers 3

ReincarnateMethod · 0.85
TEST_FFunction · 0.85

Calls 2

InvalidArgumentFunction · 0.85
TF_DeleteFunctionFunction · 0.85

Tested by 2

ReincarnateMethod · 0.68
TEST_FFunction · 0.68