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

Function AddAttr

tensorflow/core/framework/function.cc:112–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110
111template <typename T>
112void AddAttr(const string& name, const T& val, NodeDef* ndef) {
113 SetAttrValue(val, &((*ndef->mutable_attr())[name]));
114}
115
116Status ValidateSignatureWithAttrs(const OpDef& sig, AttrSlice attr_values) {
117 // attr_values should specify all attrs defined in fdef.

Callers 3

BuildInputArgIndexMethod · 0.70
AddReturnNodeMethod · 0.70
TESTFunction · 0.50

Calls 1

SetAttrValueFunction · 0.70

Tested by 1

TESTFunction · 0.40