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

Function TF_FunctionGetAttrValueProto

tensorflow/c/c_api_function.cc:749–760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

747}
748
749void TF_FunctionGetAttrValueProto(TF_Function* func, const char* attr_name,
750 TF_Buffer* output_attr_value,
751 TF_Status* status) {
752 const auto& it = func->fdef.attr().find(attr_name);
753 if (it == func->fdef.attr().end()) {
754 status->status =
755 InvalidArgument("Function '", func->fdef.signature().name(),
756 "' has no attr named '", attr_name, "'.");
757 return;
758 }
759 status->status = MessageToBuffer(it->second, output_attr_value);
760}
761
762void TF_DeleteFunction(TF_Function* func) { delete func; }

Callers 2

GetAttrMethod · 0.85
TEST_FFunction · 0.85

Calls 7

InvalidArgumentFunction · 0.85
MessageToBufferFunction · 0.85
attrMethod · 0.80
signatureMethod · 0.80
nameMethod · 0.65
findMethod · 0.45
endMethod · 0.45

Tested by 2

GetAttrMethod · 0.68
TEST_FFunction · 0.68