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

Function AddNoOp

tensorflow/core/common_runtime/function.cc:98–106  ·  view source on GitHub ↗

The following Add* routines are used to add a few graph nodes while functions are transformed.

Source from the content-addressed store, hash-verified

96// The following Add* routines are used to add a few graph nodes while
97// functions are transformed.
98static Node* AddNoOp(StringPiece name, Graph* g) {
99 NodeDef ndef;
100 ndef.set_name(g->NewName(absl::StrCat(kNodeLabel, "/", name)));
101 ndef.set_op("NoOp");
102 Status s;
103 Node* ret = g->AddNode(ndef, &s);
104 TF_CHECK_OK(s);
105 return ret;
106}
107
108static Node* AddIdentity(StringPiece name, Graph* g, Endpoint input) {
109 DCHECK_LT(0, input.dtype());

Callers 2

RemoveListArrayConverterFunction · 0.85
InlineFunctionBodyFunction · 0.85

Calls 5

set_opMethod · 0.80
StrCatFunction · 0.50
set_nameMethod · 0.45
NewNameMethod · 0.45
AddNodeMethod · 0.45

Tested by

no test coverage detected