| 38 | } |
| 39 | |
| 40 | NodeDefBuilder::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 | |
| 54 | NodeDefBuilder::NodeDefBuilder(StringPiece name, StringPiece op_name, |
| 55 | const NodeDebugInfo& debug) |
nothing calls this directly
no test coverage detected