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

Function SetNodeAttr

tensorflow/tools/graph_transforms/transform_utils.h:76–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74// overwrites any existing attributes with the same key.
75template <class T>
76inline void SetNodeAttr(const string& key, const T& value, NodeDef* node) {
77 AttrValue attr_value;
78 SetAttrValue(value, &attr_value);
79 auto* attr_map = node->mutable_attr();
80 (*attr_map)[key] = attr_value;
81}
82
83template <class T>
84inline void SetNodeTensorAttr(const string& key, const Tensor& tensor,

Callers 15

SparsifyGatherInternalFunction · 0.70
InsertLoggingFunction · 0.70
QuantizePlaceholdersFunction · 0.70
QuantizeNodesFunction · 0.70
SetNodeTensorAttrFunction · 0.70
FlattenAtrousConvFunction · 0.70
QuantizeWeightsFunction · 0.70
TestSetNodeAttrMethod · 0.70
TestGetNodeTensorAttrMethod · 0.70

Calls 1

SetAttrValueFunction · 0.50