| 99 | namespace ops { |
| 100 | |
| 101 | Node* SourceOp(const string& op_name, const GraphDefBuilder::Options& opts) { |
| 102 | if (opts.HaveError()) return nullptr; |
| 103 | NodeBuilder node_builder(opts.GetNameForOp(op_name), op_name, |
| 104 | opts.op_registry()); |
| 105 | return opts.FinalizeBuilder(&node_builder); |
| 106 | } |
| 107 | |
| 108 | Node* UnaryOp(const string& op_name, NodeOut input, |
| 109 | const GraphDefBuilder::Options& opts) { |