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

Function UpdateOp

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

Source from the content-addressed store, hash-verified

409// field will be cleared in the diff.
410template <typename GraphViewT>
411inline void UpdateOp(NodeViewDiff<GraphViewT>* diff, absl::string_view op) {
412 if (diff->graph_view->GetNode(diff->node_index)->GetOp() == op) {
413 diff->op.clear();
414 diff->update_op = false;
415 } else {
416 diff->op = string(op);
417 diff->update_op = true;
418 }
419}
420
421// Updates node device. If `device` is the same as the device in the original
422// node, the field will be cleared in the diff.

Callers 2

UpdateNodeOpMethod · 0.70
TESTFunction · 0.70

Calls 5

set_opMethod · 0.80
GetOpMethod · 0.45
GetNodeMethod · 0.45
clearMethod · 0.45
emptyMethod · 0.45

Tested by 1

TESTFunction · 0.56