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

Function UpdateName

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

Source from the content-addressed store, hash-verified

396// the field will be cleared in the diff.
397template <typename GraphViewT>
398inline void UpdateName(NodeViewDiff<GraphViewT>* diff, absl::string_view name) {
399 if (diff->graph_view->GetNode(diff->node_index)->GetName() == name) {
400 diff->name.clear();
401 diff->update_name = false;
402 } else {
403 diff->name = string(name);
404 diff->update_name = true;
405 }
406}
407
408// Updates node op. If `op` is the same as the op in the original node, the
409// field will be cleared in the diff.

Callers 2

UpdateNodeNameMethod · 0.85
TESTFunction · 0.85

Calls 5

GetNameMethod · 0.45
GetNodeMethod · 0.45
clearMethod · 0.45
emptyMethod · 0.45
set_nameMethod · 0.45

Tested by 1

TESTFunction · 0.68