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

Function TFE_OpSetAttrFunctionList

tensorflow/c/eager/c_api.cc:832–843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

830}
831
832void TFE_OpSetAttrFunctionList(TFE_Op* op, const char* attr_name,
833 const TFE_Op** value, int num_values) {
834 std::unique_ptr<tensorflow::NameAttrList[]> funcs(
835 new tensorflow::NameAttrList[num_values]);
836 for (int i = 0; i < num_values; i++) {
837 funcs[i].set_name(value[i]->operation.Name());
838 value[i]->operation.Attrs().FillAttrValueMap(funcs[i].mutable_attr());
839 }
840 op->operation.MutableAttrs()->Set(
841 attr_name, tensorflow::gtl::ArraySlice<const tensorflow::NameAttrList>(
842 funcs.get(), num_values));
843}
844
845TF_CAPI_EXPORT extern int TFE_OpGetInputLength(TFE_Op* op,
846 const char* input_name,

Callers 2

SetOpAttrListFunction · 0.85
SetOpAttrListDefaultFunction · 0.85

Calls 7

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

Tested by

no test coverage detected