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

Function TFE_OpSetAttrFunction

tensorflow/c/eager/c_api.cc:734–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

732}
733
734void TFE_OpSetAttrFunction(TFE_Op* op, const char* attr_name,
735 const TFE_Op* value) {
736 tensorflow::AttrValue attr_value;
737 tensorflow::NameAttrList* func = attr_value.mutable_func();
738 func->set_name(value->operation.Name());
739 value->operation.Attrs().FillAttrValueMap(func->mutable_attr());
740 op->operation.MutableAttrs()->Set(attr_name, attr_value);
741}
742
743void TFE_OpSetAttrFunctionName(TFE_Op* op, const char* attr_name,
744 const char* data, size_t length) {

Callers 1

SetOpAttrValueScalarFunction · 0.85

Calls 6

MutableAttrsMethod · 0.80
set_nameMethod · 0.45
NameMethod · 0.45
FillAttrValueMapMethod · 0.45
AttrsMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected