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

Function RemoveAttribute

tensorflow/core/grappler/utils/graph_view_internal.h:594–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592// diff, this will remove it.
593template <typename GraphViewT>
594inline void RemoveAttribute(NodeViewDiff<GraphViewT>* diff,
595 absl::string_view attr_name) {
596 diff->attrs_to_add.erase(attr_name);
597 auto* node_view = diff->graph_view->GetNode(diff->node_index);
598 if (node_view->HasAttr(attr_name)) {
599 diff->attrs_to_remove.emplace(attr_name);
600 }
601}
602
603// Removes trailing values in vector `v` for values equal to `value`.
604template <typename T>

Callers 2

RemoveNodeAttrMethod · 0.70
TESTFunction · 0.70

Calls 4

eraseMethod · 0.45
GetNodeMethod · 0.45
HasAttrMethod · 0.45
emplaceMethod · 0.45

Tested by 1

TESTFunction · 0.56