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

Method NodeDefBuilder

tensorflow/core/framework/node_def_builder.cc:40–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40NodeDefBuilder::NodeDefBuilder(StringPiece name, StringPiece op_name,
41 const OpRegistryInterface* op_registry,
42 const NodeDebugInfo* debug) {
43 node_def_.set_name(string(name));
44 const Status status = op_registry->LookUpOpDef(string(op_name), &op_def_);
45 if (status.ok()) {
46 Initialize();
47 } else {
48 errors_.push_back(status.error_message());
49 inputs_specified_ = 0;
50 }
51 if (debug != nullptr) MergeDebugInfo(*debug, &node_def_);
52}
53
54NodeDefBuilder::NodeDefBuilder(StringPiece name, StringPiece op_name,
55 const NodeDebugInfo& debug)

Callers

nothing calls this directly

Calls 6

MergeDebugInfoFunction · 0.85
LookUpOpDefMethod · 0.80
InitializeFunction · 0.50
set_nameMethod · 0.45
okMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected