| 26 | //=== Helper methods to construct the nodes. |
| 27 | |
| 28 | NodeDef MakeNodeConst(const string& name) { |
| 29 | NodeDef n; |
| 30 | n.set_name(name); |
| 31 | n.set_op("Const"); |
| 32 | return n; |
| 33 | } |
| 34 | |
| 35 | NodeDef MakeNode2Arg(const string& name, const string& opcode, |
| 36 | const string& arg1, const string& arg2) { |