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

Function AddNodeAttr

tensorflow/core/framework/node_def_util.cc:854–857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

852}
853
854void AddNodeAttr(StringPiece name, const AttrValue& value, NodeDef* node_def) {
855 node_def->mutable_attr()->insert(
856 AttrValueMap::value_type(string(name), value));
857}
858
859void AddNodeAttr(StringPiece name, AttrValue&& value, NodeDef* node_def) {
860 (*node_def->mutable_attr())[string(name)] = std::move(value);

Callers 1

AddDefaultsToNodeDefFunction · 0.70

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected